From 65fac597cb1375ffcc2198f120952761062d100e Mon Sep 17 00:00:00 2001 From: "[yxf]" <[1524240689@qq.com]> Date: Tue, 28 Apr 2026 16:03:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=9C=8D=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E7=A7=81=E8=81=8A=E4=BF=9D=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-web/src/store/chatStore.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/im-web/src/store/chatStore.js b/im-web/src/store/chatStore.js index 36ce6b0..410f722 100644 --- a/im-web/src/store/chatStore.js +++ b/im-web/src/store/chatStore.js @@ -374,15 +374,15 @@ export default defineStore('chatStore', { // 刷新免打扰状态 const friendStore = useFriendStore(); const onlineFriendIds = friendStore.onlineFriendIds || []; - chats = chats.filter(chat => { - // 保留群聊 - if (chat.type === 'GROUP') return true; - // 私聊只保留在线好友的 - if (chat.type === 'PRIVATE') { - return onlineFriendIds.includes(chat.targetId); - } - return true; - }); + // chats = chats.filter(chat => { + // // 保留群聊 + // if (chat.type === 'GROUP') return true; + // // 私聊只保留在线好友的 + // if (chat.type === 'PRIVATE') { + // return onlineFriendIds.includes(chat.targetId); + // } + // return true; + // }); const groupStore = useGroupStore(); chats.forEach(chat => { if (chat.type == 'PRIVATE') {