fix(rn,large-video) don't render video for the local SS

This commit is contained in:
Saúl Ibarra Corretgé 2022-10-13 16:48:20 +02:00 committed by Saúl Ibarra Corretgé
parent 4d84123c71
commit 4a54f4bedc
1 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import type { Dispatch } from 'redux';
import { getSourceNameSignalingFeatureFlag } from '../../base/config/functions.any'; import { getSourceNameSignalingFeatureFlag } from '../../base/config/functions.any';
import { JitsiTrackEvents } from '../../base/lib-jitsi-meet'; import { JitsiTrackEvents } from '../../base/lib-jitsi-meet';
import ParticipantView from '../../base/participants/components/ParticipantView.native'; 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 { connect } from '../../base/redux';
import { import {
getVideoTrackByParticipant, getVideoTrackByParticipant,
@ -259,7 +259,9 @@ function _mapStateToProps(state) {
const videoTrack = getVideoTrackByParticipant(state, participant); const videoTrack = getVideoTrackByParticipant(state, participant);
let disableVideo = false; let disableVideo = false;
if (participant?.local) { if (isLocalScreenshareParticipant(participant)) {
disableVideo = true;
} else if (participant?.local) {
disableVideo = isLocalVideoTrackDesktop(state); disableVideo = isLocalVideoTrackDesktop(state);
} }