mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
core: set last synced to 0 right after login
This commit is contained in:
@@ -152,6 +152,7 @@ class UserManager {
|
||||
password,
|
||||
salt: user.salt
|
||||
});
|
||||
await this._storage.write("lastSynced", 0);
|
||||
|
||||
EV.publish(EVENTS.userLoggedIn, user);
|
||||
}
|
||||
@@ -183,6 +184,7 @@ class UserManager {
|
||||
password,
|
||||
salt: user.salt
|
||||
});
|
||||
await this._storage.write("lastSynced", 0);
|
||||
|
||||
EV.publish(EVENTS.userLoggedIn, user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user