mobile: fix crash when logging out user

This commit is contained in:
ammarahm-ed
2023-08-30 18:21:58 +05:00
committed by Abdullah Atta
parent fabc595f3d
commit dad2b61a74
4 changed files with 192 additions and 266 deletions

View File

@@ -327,7 +327,7 @@ PODS:
- React-Core
- react-native-keep-awake (1.2.0):
- React-Core
- react-native-mmkv-storage (0.10.0-alpha.5):
- react-native-mmkv-storage (0.10.0-alpha.6):
- MMKV (~> 1.3.1)
- React
- React-Core
@@ -875,7 +875,7 @@ SPEC CHECKSUMS:
react-native-image-resizer: 00ceb0e05586c7aadf061eea676957a6c2ec60fa
react-native-in-app-review: db8bb167a5f238e7ceca5c242d6b36ce8c4404a4
react-native-keep-awake: caee3ff89eaa21dfe29010f0d143566874a04441
react-native-mmkv-storage: 47f3054a7ab997881fd4b8941c8a51fa49102793
react-native-mmkv-storage: a38beae34b1f7906a2f5e715f54216f9ddab14c0
react-native-netinfo: ccbe1085dffd16592791d550189772e13bf479e2
react-native-notification-sounds: da78c828fe1bcbb92d8b505d5261890ed315ff39
react-native-orientation: f1caf84d65f1a4fd4511a18f2b924e634ad7a628

View File

@@ -44,7 +44,7 @@
"react-native-image-picker": "4.1.2",
"react-native-in-app-review": "4.3.3",
"react-native-keychain": "4.0.5",
"react-native-mmkv-storage": "^0.10.0-alpha.5",
"react-native-mmkv-storage": "^0.10.0-alpha.6",
"react-native-modal-datetime-picker": "14.0.0",
"react-native-navigation-bar-color": "2.0.2",
"react-native-notification-sounds": "0.5.5",

File diff suppressed because it is too large Load Diff

View File

@@ -260,7 +260,6 @@ class Sync {
}
const dbLastSynced = await this.db.lastSynced();
console.time("fetch");
let count = 0;
this.connection.off("SyncItems");
this.connection.on("SyncItems", async (chunk) => {
@@ -329,7 +328,6 @@ class Sync {
);
}
console.timeEnd("fetch");
this.connection.off("SyncItems");
if (await this.conflicts.check()) {