diff --git a/package/src/components/Chat/hooks/useIsOnline.ts b/package/src/components/Chat/hooks/useIsOnline.ts index b177c40cd..661866d99 100644 --- a/package/src/components/Chat/hooks/useIsOnline.ts +++ b/package/src/components/Chat/hooks/useIsOnline.ts @@ -30,11 +30,6 @@ export const useIsOnline = < const onBackground = useCallback(() => { if (!closeConnectionOnBackground || !clientExists) return; - for (const cid in client.activeChannels) { - const channel = client.activeChannels[cid]; - channel?.state.setIsUpToDate(false); - } - client.closeConnection(); setIsOnline(false); }, [closeConnectionOnBackground, client, clientExists]);