|
|
|
@ -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]);
|
|
|
|
|