refactor: standardize event type naming for resync handling

This commit is contained in:
mlogclub
2026-04-25 17:26:27 +08:00
parent 96fde7aaab
commit 94ac7d613c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ export function useAgentConversationRealtime() {
}
const store = useAgentConversationsStore.getState()
if (eventType === "resync.required") {
if (eventType === "resyncRequired") {
void store.resyncRealtimeData(conversationId).catch((error) => {
toast.error(error instanceof Error ? error.message : "同步会话数据失败")
})
+1 -1
View File
@@ -163,7 +163,7 @@ export const useKefuChatStore = create<KefuChatStore>((set, get) => {
return
}
const payload = event.data ?? event.payload
if (event.type === "resync.required") {
if (event.type === "resyncRequired") {
void get().refreshMessages()
return
}