From 554d3bb70efdde2e2ebed9e40ad587739cb5b3af Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Mon, 9 Mar 2026 11:29:25 +0800 Subject: [PATCH] fix lint --- src/stores/gateway.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/stores/gateway.ts b/src/stores/gateway.ts index bd172bd..7ac0d21 100644 --- a/src/stores/gateway.ts +++ b/src/stores/gateway.ts @@ -111,23 +111,6 @@ function handleGatewayChatMessage(data: unknown): void { }).catch(() => {}); } -function handleGatewayMessage(data: unknown): void { - if (!data || typeof data !== 'object') return; - const msg = data as Record; - if (msg.state && msg.message) { - import('./chat').then(({ useChatStore }) => { - useChatStore.getState().handleChatEvent(msg); - }).catch(() => {}); - } else if (msg.role && msg.content) { - import('./chat').then(({ useChatStore }) => { - useChatStore.getState().handleChatEvent({ - state: 'final', - message: msg, - }); - }).catch(() => {}); - } -} - function mapChannelStatus(status: string): 'connected' | 'connecting' | 'disconnected' | 'error' { switch (status) { case 'connected':