From d89e0d2d8107cded98bf3d4c521825a55cf8acc8 Mon Sep 17 00:00:00 2001 From: ch Date: Mon, 13 Jun 2022 21:40:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:IMSDK=E5=BD=93=E5=89=8D=E4=BC=9A=E8=AF=9D,?= =?UTF-8?q?=E6=94=B6=E5=88=B0=E6=B6=88=E6=81=AF=E8=B0=83=E5=B7=B2=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/msb-im.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/msb-im.js b/src/utils/msb-im.js index ca341fe..e68f219 100644 --- a/src/utils/msb-im.js +++ b/src/utils/msb-im.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-18 14:54:47 * @LastEditors: ch - * @LastEditTime: 2022-06-13 21:32:46 + * @LastEditTime: 2022-06-13 21:40:12 * @Description: file content */ import '@/utils/poto-req'; @@ -187,6 +187,12 @@ class MsbIm { // 不在当前会话窗口则向会话消息加1条未读 if (ctx.sessionId !== this.curSessionId) { curHisData.unreadCount++; + } else { + this.setRead({ + content: { + sessionId: this.curSessionId, + }, + }); } newData = historyData; } else {