|
|
|
@ -263,7 +263,7 @@ const conversationSlice = (set, get) => ({
|
|
|
|
|
topList: mergedListMapped[1] || [],
|
|
|
|
|
pageList: mergedListMapped[0] || [],
|
|
|
|
|
conversationsList: mergedList,
|
|
|
|
|
activeConversations: { ...activeConversations, ...newConversationsMapped },
|
|
|
|
|
activeConversations: { ...newConversationsMapped, ...activeConversations, },
|
|
|
|
|
totalNotify: refreshTotalNotify,
|
|
|
|
|
// totalNotify: state.totalNotify + newConversations.map((ele) => ele.unread_msg_count).reduce((acc, cur) => acc + (cur || 0), 0),
|
|
|
|
|
}));
|
|
|
|
|