We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c0a63 commit a31d899Copy full SHA for a31d899
package/src/components/Chat/hooks/useConnectionRecovered.ts
@@ -35,7 +35,7 @@ export const useConnectionRecovered = <
35
});
36
const cids = getAllChannelIds();
37
38
- if (lastSyncedAt) {
+ if (lastSyncedAt && cids?.length) {
39
try {
40
const result = await client.sync(cids, new Date(lastSyncedAt).toISOString());
41
const queries = result.events.reduce<PreparedQueries[]>((queries, event) => {
0 commit comments