Skip to content

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

fetch user and then check if email is confirmed

ammarahm-ed73c6696747b6
diff --git a/apps/mobile/AppRootEvents.js b/apps/mobile/AppRootEvents.js
index 4e702750a..5d14d1422 100644
--- a/apps/mobile/AppRootEvents.js
+++ b/apps/mobile/AppRootEvents.js
@@ -311,12 +311,12 @@ export const AppRootEvents = React.memo(
attachIAPListeners();
clearMessage(dispatch);
await PremiumService.setPremiumStatus();
+ await Sync.run();
+ user = await db.user.fetchUser(true);
if (!user.isEmailConfirmed) {
setEmailVerifyMessage(dispatch);
return;
}
- await Sync.run();
- user = await db.user.fetchUser(true);
dispatch({type: Actions.USER, user: user});
} else {
await PremiumService.setPremiumStatus();