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;