|
|
|
@ -160,7 +160,7 @@ const conversationSlice = (set, get) => ({
|
|
|
|
|
return set((state) => ({
|
|
|
|
|
conversationsList: [...newConversations, ...state.conversationsList],
|
|
|
|
|
activeConversations: { ...activeConversations, ...newConversationsMapped },
|
|
|
|
|
totalNotify: state.totalNotify + newConversations.map(ele => ele.unread_msg_count).reduce((acc, cur) => acc + cur, 0),
|
|
|
|
|
totalNotify: state.totalNotify + newConversations.map(ele => ele.unread_msg_count).reduce((acc, cur) => acc + (cur || 0), 0),
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
delConversationitem: (conversation) => {
|
|
|
|
|