From b9ccc3ad8c6c2a3dd4e66b69d3bad5ae65bc3ff1 Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Tue, 27 Oct 2020 10:18:19 -0500 Subject: [PATCH] fix(StatusIndicators): Improve isScreenSharing check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Saúl Ibarra Corretgé --- react/features/filmstrip/components/web/StatusIndicators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/filmstrip/components/web/StatusIndicators.js b/react/features/filmstrip/components/web/StatusIndicators.js index 82a0a3ada..274a25e16 100644 --- a/react/features/filmstrip/components/web/StatusIndicators.js +++ b/react/features/filmstrip/components/web/StatusIndicators.js @@ -124,7 +124,7 @@ function _mapStateToProps(state, ownProps) { } else if (!participant?.isFakeParticipant) { // remote participants excluding shared video const track = getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, participantID); - isScreenSharing = typeof track !== 'undefined' && track.videoType === 'desktop'; + isScreenSharing = track?.videoType === 'desktop'; isVideoMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.VIDEO, participantID); isAudioMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.AUDIO, participantID); }