Use concurrency of one for queues with no options

This commit is contained in:
Scott Nonnenberg 2022-07-20 19:40:53 -07:00 committed by GitHub
parent 4cd05dc6c9
commit 1f65a4491f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 22 deletions

View file

@ -599,10 +599,10 @@ function scheduleSessionReset(senderUuid: string, senderDevice: number) {
);
}
lightSessionResetQueue.add(() => {
lightSessionResetQueue.add(async () => {
const ourUuid = window.textsecure.storage.user.getCheckedUuid();
window.textsecure.storage.protocol.lightSessionReset(
await window.textsecure.storage.protocol.lightSessionReset(
new QualifiedAddress(ourUuid, Address.create(senderUuid, senderDevice))
);
});