Peek group call on ring update

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2023-10-23 15:05:20 -07:00
committed by GitHub
parent b9ac1ea47e
commit 46831b0b43

View File

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