Back camera mirror fix.

This commit is contained in:
Alex Hart
2026-01-20 13:44:41 -04:00
committed by GitHub
parent 05e77b1d33
commit c230eb179b
2 changed files with 3 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ import org.thoughtcrime.securesms.contacts.avatars.ProfileContactPhoto
import org.thoughtcrime.securesms.events.CallParticipant
import org.thoughtcrime.securesms.recipients.Recipient
import org.thoughtcrime.securesms.recipients.rememberRecipientField
import org.thoughtcrime.securesms.ringrtc.CameraState
import org.webrtc.RendererCommon
/**
@@ -191,7 +192,7 @@ fun SelfPipContent(
Box(modifier = modifier) {
VideoRenderer(
participant = participant,
mirror = true,
mirror = participant.cameraDirection == CameraState.Direction.FRONT,
modifier = Modifier.fillMaxSize()
)

View File

@@ -464,7 +464,7 @@ private fun LargeLocalVideoRenderer(
participant = localParticipant,
renderInPip = false,
raiseHandAllowed = false,
mirrorVideo = true,
mirrorVideo = localParticipant.cameraDirection == CameraState.Direction.FRONT,
showAudioIndicator = false,
onInfoMoreInfoClick = null,
modifier = modifier