Prevent deadlock in maybeApplyUniversalTimer

This commit is contained in:
Fedor Indutny
2021-06-22 08:03:09 -07:00
committed by GitHub
parent 9f0c630574
commit cb0696d59d

View File

@@ -2751,7 +2751,9 @@ export class ConversationModel extends window.Backbone
const expireTimer = universalExpireTimer.get();
if (expireTimer) {
await this.updateExpirationTimer(expireTimer);
// `updateExpirationTimer` calls `modifyGroupV2` and shouldn't be awaited
// since we run both on conversation's queue.
this.updateExpirationTimer(expireTimer);
}
this.set('pendingUniversalTimer', undefined);