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:
parent
34d8843a35
commit
011fe40853
|
@ -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 }>
|
||||
|
|
Loading…
Reference in New Issue