fix: 会话列表: 刷新后, 当前会话的消息被清空, 当前不在第一页时

dev/emitter
Lei OT 10 months ago
parent 251f39af7d
commit b387f02337

@ -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),
}));

Loading…
Cancel
Save