From 60488309ca84616ba0f730a8f615a7b792d67261 Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Fri, 13 Mar 2026 08:16:00 +0100 Subject: [PATCH] higher the update rate of the chat --- frontend/src/contexts/ChatContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/contexts/ChatContext.tsx b/frontend/src/contexts/ChatContext.tsx index 3b911e6..a2c91fb 100644 --- a/frontend/src/contexts/ChatContext.tsx +++ b/frontend/src/contexts/ChatContext.tsx @@ -25,7 +25,7 @@ export const ChatProvider: React.FC = ({ children }) => { const { data: connData } = useQuery({ queryKey: ['nextcloud', 'connection'], queryFn: () => nextcloudApi.getConversations(), - refetchInterval: chatPanelOpen ? 30000 : 120000, + refetchInterval: chatPanelOpen ? 5000 : 60000, retry: false, }); @@ -34,7 +34,7 @@ export const ChatProvider: React.FC = ({ children }) => { const { data } = useQuery({ queryKey: ['nextcloud', 'rooms'], queryFn: () => nextcloudApi.getRooms(), - refetchInterval: chatPanelOpen ? 30000 : 120000, + refetchInterval: chatPanelOpen ? 5000 : 60000, enabled: isConnected, });