From be5500e99002dfb4e940f2aad3d562cf90ccb079 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Fri, 7 Nov 2025 09:57:07 -0400 Subject: [PATCH] Display large local renderer in ongoing group call if no other users are joined. --- .../securesms/components/webrtc/v2/CallScreen.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/v2/CallScreen.kt b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/v2/CallScreen.kt index 6066501459..7c0b65736a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/v2/CallScreen.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/v2/CallScreen.kt @@ -354,11 +354,14 @@ private fun BoxScope.Viewport( onToggleCameraDirection: () -> Unit, modifier: Modifier = Modifier ) { - if (webRtcCallState.isPreJoinOrNetworkUnavailable) { + val isEmptyOngoingCall = webRtcCallState.inOngoingCall && callParticipantsPagerState.callParticipants.isEmpty() + if (webRtcCallState.isPreJoinOrNetworkUnavailable || isEmptyOngoingCall) { LargeLocalVideoRenderer( localParticipant = localParticipant, modifier = modifier ) + + return } val isLargeGroupCall = overflowParticipants.size > 1