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

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