From 07f5e49d4031f74c296fe01bb79e913c864979e5 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 07 四月 2025 17:29:52 +0800 Subject: [PATCH] 数字人 --- src/components/chat/hooks/useSyncMsg.ts | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/chat/hooks/useSyncMsg.ts b/src/components/chat/hooks/useSyncMsg.ts index b461a10..9122e68 100644 --- a/src/components/chat/hooks/useSyncMsg.ts +++ b/src/components/chat/hooks/useSyncMsg.ts @@ -42,14 +42,20 @@ msgList.value.splice(resultItem.index, 0, ...resultItem.item); }); }; + + const historyUpdate = async (data: any) => { if (!checkCanSync(data)) return; if (!data) return; - Logger.info('sync message notification锛歕n\n' + JSON.stringify(data)); if (data?.type === 'chat_start') { - - showTip(data); + const groupId = unref(historyGroupId); + const startGroupId = data?.history_group_id; + if (groupId !== startGroupId) return; + const isDigitalHuman = data?.is_digital_human; + if (!isDigitalHuman) { + showTip(data); + } } if (data?.type === 'chat_history_id') { const groupId = unref(historyGroupId); @@ -82,6 +88,7 @@ updateLoadIndex(unSyncedHistoryIds.length); scrollToBottom(); } + }; onActivated(() => { -- Gitblit v1.9.3