Defer unprocessed item attempt update

This commit is contained in:
Fedor Indutny 2021-09-17 16:11:24 -07:00 committed by GitHub
parent 7b5faa1cc1
commit b83c00f43f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 55 deletions

View file

@ -1948,12 +1948,6 @@ export class SignalProtocolStore extends EventsMixin {
});
}
updateUnprocessedAttempts(id: string, attempts: number): Promise<void> {
return this.withZone(GLOBAL_ZONE, 'updateUnprocessedAttempts', async () => {
await window.Signal.Data.updateUnprocessedAttempts(id, attempts);
});
}
updateUnprocessedWithData(
id: string,
data: UnprocessedUpdateType