Skip to content

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

web: enable auto sync

Abdullah Atta480b4398dad9
diff --git a/apps/web/src/stores/app-store.ts b/apps/web/src/stores/app-store.ts
index 558aa07c2..ce22aaa31 100644
--- a/apps/web/src/stores/app-store.ts
+++ b/apps/web/src/stores/app-store.ts
@@ -117,10 +117,7 @@ class AppStore extends BaseStore<AppStore> {
EVENTS.databaseSyncRequested,
async (full, force, lastSynced) => {
if (!this.get().isAutoSyncEnabled) return;
-
- // TODO: remove this
- if ((await db.lastSynced()) === 0)
- await this.get().sync(full, force, lastSynced);
+ await this.get().sync(full, force, lastSynced);
}
);