From 46831b0b43732f5aac50ee509b7b9ad4445eccad Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:05:20 -0700 Subject: [PATCH] Peek group call on ring update Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> --- ts/services/calling.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ts/services/calling.ts b/ts/services/calling.ts index a3028907a..ef174d88a 100644 --- a/ts/services/calling.ts +++ b/ts/services/calling.ts @@ -170,6 +170,7 @@ type CallingReduxInterface = Pick< | 'remoteVideoChange' | 'setPresenting' | 'startCallingLobby' + | 'peekNotConnectedGroupCall' > & { areAnyCallsActiveOrRinging(): boolean; }; @@ -1887,6 +1888,12 @@ export class CallingClass { return; } + if (update === RingUpdate.Requested) { + this.reduxInterface?.peekNotConnectedGroupCall({ + conversationId: conversation.id, + }); + } + const logId = `handleGroupCallRingUpdate(${conversation.idForLogging()})`; if (conversation.isBlocked()) { log.warn(`${logId}: is blocked`);