diff --git a/src/stores/ConversationStore.js b/src/stores/ConversationStore.js index 20e7270..e1b0453 100644 --- a/src/stores/ConversationStore.js +++ b/src/stores/ConversationStore.js @@ -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), }));