Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Fix event callback on sync service

Hakan Shehufa169b2f7e42
diff --git a/apps/desktop/src/main/services/sync-service.ts b/apps/desktop/src/main/services/sync-service.ts
index ed843b10..3d05417b 100644
--- a/apps/desktop/src/main/services/sync-service.ts
+++ b/apps/desktop/src/main/services/sync-service.ts
@@ -35,8 +35,7 @@ class SyncService {
} else if (event.type === 'workspace_created') {
this.requireNodeTransactions(event.workspace.userId);
} else if (event.type === 'socket_connection_opened') {
- this.requireNodeTransactions(event.accountId);
- this.requireCollaborations(event.accountId);
+ this.syncAllWorkspaces();
}
});
}