You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-04 05:02:41 +03:00
switch to imperative try...finally
This commit is contained in:
@@ -412,13 +412,15 @@ export class LocalIndexedDBStoreBackend implements IIndexedDBBackend {
|
|||||||
this.isPersisting = true;
|
this.isPersisting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all([
|
try {
|
||||||
this.persistUserPresenceEvents(userTuples),
|
await Promise.all([
|
||||||
this.persistAccountData(syncData.accountData),
|
this.persistUserPresenceEvents(userTuples),
|
||||||
this.persistSyncData(syncData.nextBatch, syncData.roomsData),
|
this.persistAccountData(syncData.accountData),
|
||||||
]).finally(() => {
|
this.persistSyncData(syncData.nextBatch, syncData.roomsData),
|
||||||
|
]);
|
||||||
|
} finally {
|
||||||
this.isPersisting = false;
|
this.isPersisting = false;
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user