|
|
@ -306,7 +306,7 @@ const messageSlice = (set, get) => ({
|
|
|
|
conversationsList.splice(targetIndex, 1);
|
|
|
|
conversationsList.splice(targetIndex, 1);
|
|
|
|
conversationsList.unshift(newConversation);
|
|
|
|
conversationsList.unshift(newConversation);
|
|
|
|
return set({
|
|
|
|
return set({
|
|
|
|
totalNotify: totalNotify + newConversation.unread_msg_count,
|
|
|
|
totalNotify: totalNotify + (message.sender === 'me' ? 0 : 1),
|
|
|
|
activeConversations: { ...activeConversations, [String(targetId)]: [...targetMsgs, message] },
|
|
|
|
activeConversations: { ...activeConversations, [String(targetId)]: [...targetMsgs, message] },
|
|
|
|
conversationsList: [...conversationsList],
|
|
|
|
conversationsList: [...conversationsList],
|
|
|
|
currentConversation: {
|
|
|
|
currentConversation: {
|
|
|
|