更新未读数量

dev/emitter
Lei OT 10 months ago
parent 9411e848b3
commit 036e1f7220

@ -62,8 +62,8 @@ const MessagesWrapper = ({ updateRead = true, forceGetMessages }) => {
useEffect(() => {
if (updateRead === true && isVisible && currentConversation.opi_sn && activeMessages.length > 0) {
fetchCleanUnreadMsgCount({ opisn: currentConversation.opi_sn, conversationid: currentConversation.sn });
refreshTotalNotify();
updateCurrentConversation({ unread_msg_count: 0 });
refreshTotalNotify();
}
return () => {};
}, [activeMessages.length, isVisible]);

Loading…
Cancel
Save