Let users ring members when starting a group call

Co-Authored-By: Josh Perez <60019601+josh-signal@users.noreply.github.com>
This commit is contained in:
Evan Hahn
2021-08-25 16:42:51 -05:00
committed by GitHub
parent 4afe4649ec
commit 0e7f641dc1
25 changed files with 556 additions and 97 deletions

View File

@@ -684,7 +684,8 @@ export class CallingClass {
public joinGroupCall(
conversationId: string,
hasLocalAudio: boolean,
hasLocalVideo: boolean
hasLocalVideo: boolean,
shouldRing: boolean
): void {
this.attemptToGiveOurUuidToRingRtc();
@@ -717,10 +718,7 @@ export class CallingClass {
groupCall.setOutgoingVideoMuted(!hasLocalVideo);
this.videoCapturer.enableCaptureAndSend(groupCall);
// This is a temporary flag to help all client teams (Desktop, iOS, and Android)
// debug. Soon, this will be exposed in the UI (see DESKTOP-2113).
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if (window.RING_WHEN_JOINING_GROUP_CALLS) {
if (shouldRing) {
groupCall.ringAll();
}