mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: fix sync not running after login
This commit is contained in:
@@ -118,7 +118,9 @@ class AppStore extends BaseStore<AppStore> {
|
||||
async (full, force, lastSynced) => {
|
||||
if (!this.get().isAutoSyncEnabled) return;
|
||||
|
||||
// await this.get().sync(full, force, lastSynced);
|
||||
// TODO: remove this
|
||||
if ((await db.lastSynced()) === 0)
|
||||
await this.get().sync(full, force, lastSynced);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ class UserStore extends BaseStore<UserStore> {
|
||||
await db.user.authenticatePassword(
|
||||
email,
|
||||
password,
|
||||
null,
|
||||
undefined,
|
||||
sessionExpired
|
||||
);
|
||||
Config.set("encryptBackups", true);
|
||||
|
||||
Reference in New Issue
Block a user