From de329166d25fd598643b154e8640b2aeec2cbcf9 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Mon, 10 Oct 2022 16:26:12 -0400 Subject: [PATCH] Always show remote participant when entering PIP mode. --- .../securesms/components/webrtc/CallParticipantsState.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt index 24ab6b4eed..87f6ba2319 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt @@ -285,7 +285,7 @@ data class CallParticipantsState( val displayLocal: Boolean = (numberOfRemoteParticipants == 0 || !isInPip) && (isNonIdleGroupCall || localParticipant.isVideoEnabled) var localRenderState: WebRtcLocalRenderState = WebRtcLocalRenderState.GONE - if (isExpanded && (localParticipant.isVideoEnabled || isNonIdleGroupCall)) { + if (!isInPip && isExpanded && (localParticipant.isVideoEnabled || isNonIdleGroupCall)) { return WebRtcLocalRenderState.EXPANDED } else if (displayLocal || showVideoForOutgoing) { if (callState == WebRtcViewModel.State.CALL_CONNECTED || callState == WebRtcViewModel.State.CALL_RECONNECTING) {