Peek group call on ring update

This commit is contained in:
Jamie Kyle 2023-10-23 13:31:07 -07:00 committed by GitHub
parent 82d7546353
commit 9960970550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,6 +171,7 @@ type CallingReduxInterface = Pick<
| 'remoteVideoChange'
| 'setPresenting'
| 'startCallingLobby'
| 'peekNotConnectedGroupCall'
> & {
areAnyCallsActiveOrRinging(): boolean;
};
@ -1897,6 +1898,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`);