From ee8d0196b17c66f39e575c133d0780c2babb9fa2 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Thu, 2 Dec 2021 12:49:31 -0800 Subject: [PATCH] Don't show a notification for non-ringing calls in muted groups --- ts/services/calling.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ts/services/calling.ts b/ts/services/calling.ts index 181d6e110..178e508f5 100644 --- a/ts/services/calling.ts +++ b/ts/services/calling.ts @@ -2019,7 +2019,12 @@ export class CallingClass { ); const isAnybodyElseInGroupCall = Boolean(peekInfo.joinedMembers.length); - if (isNewCall && !wasStartedByMe && isAnybodyElseInGroupCall) { + if ( + isNewCall && + !wasStartedByMe && + isAnybodyElseInGroupCall && + !conversation.isMuted() + ) { this.notifyForGroupCall(conversation, creatorConversation); } }