From 557a57c627dbaf97ec343de7933168f78187a489 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 11 二月 2025 18:53:34 +0800
Subject: [PATCH] 意图分析都在第一个,流问题bug

---
 src/components/chat/hooks/useSyncMsg.ts |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/chat/hooks/useSyncMsg.ts b/src/components/chat/hooks/useSyncMsg.ts
index b461a10..c4de147 100644
--- a/src/components/chat/hooks/useSyncMsg.ts
+++ b/src/components/chat/hooks/useSyncMsg.ts
@@ -42,13 +42,16 @@
 			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') {
-
+			const groupId = unref(historyGroupId);
+			const startGroupId = data?.history_group_id;
+			if (groupId !== startGroupId) return;
 			showTip(data);
 		}
 		if (data?.type === 'chat_history_id') {
@@ -82,6 +85,7 @@
 			updateLoadIndex(unSyncedHistoryIds.length);
 			scrollToBottom();
 		}
+
 	};
 
 	onActivated(() => {

--
Gitblit v1.9.3