From 22c77a8665f6bb621e85ebdfd825fb5f5c59e7ea Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 3 Aug 2026 06:21:30 +0100 Subject: [PATCH] fix: preserve restored queue state on startup --- ui/src/pages/chat/chat-pane-context.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/pages/chat/chat-pane-context.ts b/ui/src/pages/chat/chat-pane-context.ts index 2c83e6eacafa..b8c16d66b950 100644 --- a/ui/src/pages/chat/chat-pane-context.ts +++ b/ui/src/pages/chat/chat-pane-context.ts @@ -190,8 +190,10 @@ export abstract class ChatPaneContext extends ChatPaneLifecycle { this.cancelHeaderRename(); cancelChatScroll(state); releaseChatMediaResourceSubscriber(state.requestUpdate); - if (state.client) { - markQueuedChatSendsWaitingForReconnect(state); + if (wasConnected) { + if (snapshot.phase === "connected") { + markQueuedChatSendsWaitingForReconnect(state); + } state.chatSending = false; state.chatSendingScopeKey = null; }