From a7239fa3f1a3f7a06db473eefcba60de38f1db33 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Sat, 17 Aug 2024 23:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9Aweb=E7=AB=AF?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=AD=98=E5=82=A8=E4=BB=A5=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E4=B8=BA=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-web/src/store/chatStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/im-web/src/store/chatStore.js b/im-web/src/store/chatStore.js index f9ff092..551cd3e 100644 --- a/im-web/src/store/chatStore.js +++ b/im-web/src/store/chatStore.js @@ -83,7 +83,7 @@ export default { readedMessage(state, pos) { let chat = this.getters.findChatByFriend(pos.friendId); chat.messages.forEach((m) => { - if (m.id && m.selfSend && m.status != MESSAGE_STATUS.RECALL) { + if (m.id && m.selfSend && m.status < MESSAGE_STATUS.RECALL) { // pos.maxId为空表示整个会话已读 if (!pos.maxId || m.id <= pos.maxId) { m.status = MESSAGE_STATUS.READED @@ -303,6 +303,7 @@ export default { // 只存储有改动的会话 let chatKey = `${key}-${chat.type}-${chat.targetId}` if (!chat.stored) { + console.log(chatKey) if (chat.delete) { localForage.removeItem(chatKey); } else {