Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: do not run sync before connecting sse

Abdullah Attaf2f8d81b98a3
diff --git a/packages/core/src/api/index.ts b/packages/core/src/api/index.ts
index c029c6232..3e9b45911 100644
--- a/packages/core/src/api/index.ts
+++ b/packages/core/src/api/index.ts
@@ -349,8 +349,6 @@ class Database {
*/
async connectSSE(args?: { force: boolean }) {
await this.sseMutex.runExclusive(async () => {
- this.eventManager.publish(EVENTS.databaseSyncRequested, true, false);
-
const forceReconnect = args && args.force;
const EventSource = this.options.eventsource;
if (