Skip to content

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

core: send sync completed event udp style

Abdullah Attad5b679187afb
diff --git a/packages/core/src/api/sync/index.js b/packages/core/src/api/sync/index.js
index da1080854..37658db8e 100644
--- a/packages/core/src/api/sync/index.js
+++ b/packages/core/src/api/sync/index.js
@@ -300,7 +300,7 @@ class Sync {
}
}
if (!isSyncInitialized) return;
- await this.connection.invoke("SyncCompleted", newLastSynced);
+ await this.connection.send("SyncCompleted", newLastSynced);
return true;
}