Added a check for the group member length to prevent lonely ringing

This commit is contained in:
lamemakes 2023-02-10 12:33:37 -05:00
parent 8e4de33d71
commit dcba979b02

View file

@ -294,7 +294,9 @@ export function CallScreen({
}
case CallMode.Group:
isRinging =
activeCall.outgoingRing && !activeCall.remoteParticipants.length;
activeCall.outgoingRing &&
!activeCall.remoteParticipants.length &&
!(groupMembers?.length === 1 && groupMembers[0].id === me.id);
hasCallStarted = activeCall.joinState !== GroupCallJoinState.NotJoined;
participantCount = activeCall.remoteParticipants.length + 1;