CW-695: Fix Zone Mismatch Error Triggered By Restoring Backup (#1651)

* Fix: Zone mismatch error triggered by restoring backup

* fix: Adjust check for reinitializing
This commit is contained in:
David Adegoke
2024-09-05 05:59:20 +03:00
committed by GitHub
parent 0b06ad3a07
commit 3869a71bd1
2 changed files with 51 additions and 32 deletions
@@ -46,7 +46,7 @@ abstract class RestoreFromBackupViewModelBase with Store {
final data = await file.readAsBytes();
await backupService.importBackup(data, password);
await main();
await initializeAppAtRoot(reInitializing: true);
final store = getIt.get<AppStore>();
ReactionDisposer? reaction;