From 78af8b199e4dcf44a81aee70e8c9d3cab0cb62b7 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Mon, 13 Nov 2023 23:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A2=AB@=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E7=82=B9=E4=B8=8D=E6=8E=89=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/store/chatStore.js | 3 ++- im-uniapp/store/chatStore.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/im-ui/src/store/chatStore.js b/im-ui/src/store/chatStore.js index 9ad646b..bf204fa 100644 --- a/im-ui/src/store/chatStore.js +++ b/im-ui/src/store/chatStore.js @@ -151,7 +151,8 @@ export default { chat.unreadCount++; } // 是否有人@我 - if(!msgInfo.selfSend && chat.type=="GROUP" && msgInfo.atUserIds){ + if(!msgInfo.selfSend && chat.type=="GROUP" && msgInfo.atUserIds + && msgInfo.status != MESSAGE_STATUS.READED){ let userId = userStore.state.userInfo.id; if(msgInfo.atUserIds.indexOf(userId)>=0){ chat.atMe = true; diff --git a/im-uniapp/store/chatStore.js b/im-uniapp/store/chatStore.js index 67a2bf3..333bd97 100644 --- a/im-uniapp/store/chatStore.js +++ b/im-uniapp/store/chatStore.js @@ -143,13 +143,13 @@ export default { chat.lastSendTime = msgInfo.sendTime; chat.sendNickName = msgInfo.sendNickName; } - // 未读加1 if (!msgInfo.selfSend && msgInfo.status != MESSAGE_STATUS.READED) { chat.unreadCount++; } // 是否有人@我 - if(!msgInfo.selfSend && chat.type=="GROUP" && msgInfo.atUserIds){ + if(!msgInfo.selfSend && chat.type=="GROUP" && msgInfo.atUserIds + && msgInfo.status != MESSAGE_STATUS.READED){ let userId = userStore.state.userInfo.id; if(msgInfo.atUserIds.indexOf(userId)>=0){ chat.atMe = true;