mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
ui: fix message target (#318)
This commit is contained in:
1 parent
9aab641417
commit
35632cc1aa
2 files changed
+2
-2
No files matched your search
@@ -4,7 +4,7 @@ export default function reducer(state = {}, action) {
|
||||
switch (action.type) {
|
||||
case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': {
|
||||
const dialogues = action.payload.messages;
|
||||
return _.fromPairs(_.map(dialogues, (d) => [d._id, '']));
|
||||
return { ...state, ..._.fromPairs(_.map(dialogues, (d) => [d._id, ''])) };
|
||||
}
|
||||
case 'DIALOGUES_CREATE': {
|
||||
const { user } = action.payload;
|
||||
|
||||
@@ -5,7 +5,7 @@ export default function reducer(state = {}, action) {
|
||||
switch (action.type) {
|
||||
case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': {
|
||||
const dialogues = action.payload.messages;
|
||||
return _.fromPairs(_.map(dialogues, (d) => [d._id, false]));
|
||||
return { ...state, ..._.fromPairs(_.map(dialogues, (d) => [d._id, false])) };
|
||||
}
|
||||
case 'DIALOGUES_CREATE': {
|
||||
const { user } = action.payload;
|
||||
|
||||
Reference in new issue
Block a user