todo: 消息数量

dev/chat
Lei OT 2 years ago
parent fa89685dd2
commit 65a9095b0d

@ -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) => {

Loading…
Cancel
Save