From 33e508467d8f0407fb1893c2ba0f189bb576f6e9 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 9 May 2025 17:01:18 -0600 Subject: [PATCH] switch reasoning --- web/src/context/Chats/NewChatProvider.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/context/Chats/NewChatProvider.tsx b/web/src/context/Chats/NewChatProvider.tsx index 825996b13..6c419309c 100644 --- a/web/src/context/Chats/NewChatProvider.tsx +++ b/web/src/context/Chats/NewChatProvider.tsx @@ -111,6 +111,12 @@ export const useBusterNewChat = () => { }); } + //needed in order to trigger the auto change layout + busterSocket.once({ + route: '/chats/post:initializeChat', + callback: initializeNewChatCallback + }); + await busterSocket.emitAndOnce({ emitEvent: { route: '/chats/post',