fix:IMSDK当前会话,收到消息调已读

feat-im-0607-ch
ch 3 years ago
parent 3ab876abbe
commit d89e0d2d81

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-18 14:54:47 * @Date: 2022-05-18 14:54:47
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-13 21:32:46 * @LastEditTime: 2022-06-13 21:40:12
* @Description: file content * @Description: file content
*/ */
import '@/utils/poto-req'; import '@/utils/poto-req';
@ -187,6 +187,12 @@ class MsbIm {
// 不在当前会话窗口则向会话消息加1条未读 // 不在当前会话窗口则向会话消息加1条未读
if (ctx.sessionId !== this.curSessionId) { if (ctx.sessionId !== this.curSessionId) {
curHisData.unreadCount++; curHisData.unreadCount++;
} else {
this.setRead({
content: {
sessionId: this.curSessionId,
},
});
} }
newData = historyData; newData = historyData;
} else { } else {

Loading…
Cancel
Save