Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn,filmstrip) fix local participant location

Saúl Ibarra Corretgé011fe408537c
diff --git a/react/features/filmstrip/components/native/Filmstrip.js b/react/features/filmstrip/components/native/Filmstrip.js
index 0643fac9e6..7d4f54b940 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<Props> {
? 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 (
<SafeAreaView style = { filmstripStyle }>