From e8df8f75a8b78a77294e361dd099ab606c163ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 7 Oct 2022 13:36:22 +0200 Subject: [PATCH] fix(rn,participants) fix rendering screen-sharing --- .../components/ParticipantView.native.js | 13 ++++++++++--- react/features/base/participants/functions.ts | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.js index 1e4f068a9..780378180 100644 --- a/react/features/base/participants/components/ParticipantView.native.js +++ b/react/features/base/participants/components/ParticipantView.native.js @@ -12,7 +12,7 @@ import { Container, TintedView } from '../../react'; import { connect } from '../../redux'; import { TestHint } from '../../testing/components'; import { getVideoTrackByParticipant } from '../../tracks'; -import { getParticipantById, shouldRenderParticipantVideo } from '../functions'; +import { getParticipantById, isSharedVideoParticipant, shouldRenderParticipantVideo } from '../functions'; import { FakeParticipant } from '../types'; import styles from './styles'; @@ -38,6 +38,11 @@ type Props = { */ _fakeParticipant?: FakeParticipant, + /** + * Whether the participant is a shared video participant. + */ + _isSharedVideoParticipant: boolean, + /** * The name of the participant which this component represents. * @@ -176,6 +181,7 @@ class ParticipantView extends Component { const { _connectionStatus: connectionStatus, _fakeParticipant, + _isSharedVideoParticipant, _renderVideo: renderVideo, _videoTrack: videoTrack, disableVideo, @@ -191,7 +197,7 @@ class ParticipantView extends Component { ? this.props.testHintId : `org.jitsi.meet.Participant#${this.props.participantId}`; - const renderSharedVideo = _fakeParticipant && !disableVideo; + const renderSharedVideo = _isSharedVideoParticipant && !disableVideo; return ( { { renderSharedVideo && } - { !_fakeParticipant && renderVideo + { renderVideo &&