mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
fix sync runs twice on login
This commit is contained in:
@@ -298,13 +298,6 @@ export const useAppEvents = () => {
|
||||
try {
|
||||
user = await db.user.getUser();
|
||||
await PremiumService.setPremiumStatus();
|
||||
if (login) {
|
||||
console.log('sync started');
|
||||
await Sync.run();
|
||||
console.log('hide progress dialog');
|
||||
await sleep(300);
|
||||
eSendEvent(eCloseProgressDialog);
|
||||
}
|
||||
setLastSynced(await db.lastSynced());
|
||||
if (!user) {
|
||||
return setLoginMessage();
|
||||
|
||||
Reference in New Issue
Block a user