mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Display large local renderer in ongoing group call if no other users are joined.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user