Don't show a notification for non-ringing calls in muted groups

This commit is contained in:
Jordan Rose 2021-12-02 12:49:31 -08:00 committed by GitHub
parent a0b3464e15
commit ee8d0196b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}