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.
This commit is contained in:
Saúl Ibarra Corretgé 2022-02-22 17:23:26 +01:00 committed by Saúl Ibarra Corretgé
parent 34d8843a35
commit 011fe40853
1 changed files with 9 additions and 2 deletions

View File

@ -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 }>