From 011fe408537c2fc164e41425769bc89f252d1cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 22 Feb 2022 17:23:26 +0100 Subject: [PATCH] fix(rn,filmstrip) fix local participant location This applies to android only, where we don't separate the local thumbnail. In portrait mode the local thumbnail needs to be on the right, aka the last one. In landscape mode it needs to be on top, aka the first. --- .../features/filmstrip/components/native/Filmstrip.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/react/features/filmstrip/components/native/Filmstrip.js b/react/features/filmstrip/components/native/Filmstrip.js index 0643fac9e..7d4f54b94 100644 --- a/react/features/filmstrip/components/native/Filmstrip.js +++ b/react/features/filmstrip/components/native/Filmstrip.js @@ -237,8 +237,15 @@ class Filmstrip extends PureComponent { ? width / (thumbnailWidth + (2 * margin)) : height / (thumbnailHeight + (2 * margin)) ); - const participants = this._separateLocalThumbnail || _disableSelfView - ? _participants : [ _localParticipantId, ..._participants ]; + let participants; + + if (this._separateLocalThumbnail || _disableSelfView) { + participants = _participants; + } else if (isNarrowAspectRatio) { + participants = [ ..._participants, _localParticipantId ]; + } else { + participants = [ _localParticipantId, ..._participants ]; + } return (