From 4a54f4bedc6f3781dc474191e5d65dcb6b252b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 13 Oct 2022 16:48:20 +0200 Subject: [PATCH] fix(rn,large-video) don't render video for the local SS --- react/features/large-video/components/LargeVideo.native.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/react/features/large-video/components/LargeVideo.native.js b/react/features/large-video/components/LargeVideo.native.js index 40854cb12..2fd55cf37 100644 --- a/react/features/large-video/components/LargeVideo.native.js +++ b/react/features/large-video/components/LargeVideo.native.js @@ -6,7 +6,7 @@ import type { Dispatch } from 'redux'; import { getSourceNameSignalingFeatureFlag } from '../../base/config/functions.any'; import { JitsiTrackEvents } from '../../base/lib-jitsi-meet'; import ParticipantView from '../../base/participants/components/ParticipantView.native'; -import { getParticipantById } from '../../base/participants/functions'; +import { getParticipantById, isLocalScreenshareParticipant } from '../../base/participants/functions'; import { connect } from '../../base/redux'; import { getVideoTrackByParticipant, @@ -259,7 +259,9 @@ function _mapStateToProps(state) { const videoTrack = getVideoTrackByParticipant(state, participant); let disableVideo = false; - if (participant?.local) { + if (isLocalScreenshareParticipant(participant)) { + disableVideo = true; + } else if (participant?.local) { disableVideo = isLocalVideoTrackDesktop(state); }