Prevent deadlock in maybeApplyUniversalTimer
This commit is contained in:
parent
9f0c630574
commit
cb0696d59d
1 changed files with 3 additions and 1 deletions
|
@ -2751,7 +2751,9 @@ export class ConversationModel extends window.Backbone
|
||||||
|
|
||||||
const expireTimer = universalExpireTimer.get();
|
const expireTimer = universalExpireTimer.get();
|
||||||
if (expireTimer) {
|
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);
|
this.set('pendingUniversalTimer', undefined);
|
||||||
|
|
Loading…
Add table
Reference in a new issue