Skip to content

Commit

Permalink
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-nativ…
Browse files Browse the repository at this point in the history
…e into message-pagination
  • Loading branch information
khushal87 committed Nov 22, 2024
2 parents 078ad3c + 6201f33 commit b2f9ea7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions package/src/components/Chat/hooks/useIsOnline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,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]);
Expand Down

0 comments on commit b2f9ea7

Please sign in to comment.