fix(StatusIndicators): Improve isScreenSharing check

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
This commit is contained in:
Hristo Terezov 2020-10-27 10:18:19 -05:00
parent 68a0bdce2c
commit b9ccc3ad8c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}