Display large local renderer in ongoing group call if no other users are joined.

This commit is contained in:
Alex Hart
2025-11-07 09:57:07 -04:00
committed by Michelle Tang
parent 0c3a77f75a
commit be5500e990

View File

@@ -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