fix(conversation): update dependency on conversation ID for effect hooks

This commit is contained in:
mlogclub
2026-05-02 13:16:42 +08:00
parent 8602072e66
commit 6a579e50ed
2 changed files with 2 additions and 2 deletions
@@ -173,7 +173,7 @@ export function ChatPanel() {
toast.error(error instanceof Error ? error.message : "设置已读失败");
});
}, [
conversation,
conversation?.id,
getViewport,
isNearBottom,
loading,
+1 -1
View File
@@ -137,7 +137,7 @@ export function KefuChatShell() {
void markConversationRead().catch((readError) => {
console.error("Failed to mark kefu conversation read", readError)
})
}, [conversation, isVisible, markConversationRead])
}, [conversation?.id, isVisible, markConversationRead])
useEffect(() => {
return bindKefuHostBridge({