fix sync runs twice on login

This commit is contained in:
ammarahm-ed
2022-04-01 15:41:43 +05:00
parent 204898eab1
commit d23e092e32

View File

@@ -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();