From 19f92115bb474c8b8e18dbc6a1fe9c943aaa98f3 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Fri, 5 Sep 2025 19:50:18 +0300 Subject: [PATCH] Fix message loading --- frontend/src/ui/hooks/useChat.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/ui/hooks/useChat.ts b/frontend/src/ui/hooks/useChat.ts index cf7a19d..d2238df 100644 --- a/frontend/src/ui/hooks/useChat.ts +++ b/frontend/src/ui/hooks/useChat.ts @@ -114,6 +114,7 @@ export function useChat() { useEffect(() => { messagesLoadedRef.current = false; clearMessages(); // Clear messages when switching chats + loadMessages(); }, [chat.currentChat, clearMessages]); return {