mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
refactor
This commit is contained in:
@@ -340,18 +340,6 @@ export const useAppEvents = () => {
|
||||
setRecoveryKeyMessage();
|
||||
}
|
||||
if (!user.isEmailConfirmed) setEmailVerifyMessage();
|
||||
|
||||
if (!login) {
|
||||
if (PremiumService.get() && user) {
|
||||
if (SettingsService.get().reminder === 'off') {
|
||||
await SettingsService.set({ reminder: 'daily' });
|
||||
}
|
||||
if (Backup.checkBackupRequired()) {
|
||||
sleep(2000).then(() => Backup.checkAndRun());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
refValues.current.isUserReady = true;
|
||||
|
||||
syncedOnLaunch.current = true;
|
||||
|
||||
Reference in New Issue
Block a user