From bb670fd90de5eeab92233c8a10acfd88d4ef7a4f Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Thu, 26 Aug 2021 18:26:41 -0500 Subject: [PATCH] Apply suggestions from code review 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/native/Thumbnail.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js index 653c85bf9..7bcdb2df6 100644 --- a/react/features/filmstrip/components/native/Thumbnail.js +++ b/react/features/filmstrip/components/native/Thumbnail.js @@ -330,13 +330,13 @@ function _mapStateToProps(state, ownProps) { = getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.AUDIO, id); const videoTrack = getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, id); - const videoMuted = !videoTrack || videoTrack.muted; - const isScreenShare = videoTrack && videoTrack.videoType === VIDEO_TYPE.DESKTOP; + const videoMuted = videoTrack?.muted ?? true; + const isScreenShare = videoTrack?.videoType === VIDEO_TYPE.DESKTOP; const participantCount = getParticipantCount(state); const renderDominantSpeakerIndicator = participant && participant.dominantSpeaker && participantCount > 2; const _isEveryoneModerator = isEveryoneModerator(state); const renderModeratorIndicator = !_isEveryoneModerator - && participant && participant.role === PARTICIPANT_ROLE.MODERATOR; + && participant?.role === PARTICIPANT_ROLE.MODERATOR; const participantInLargeVideo = id === largeVideo.participantId; return {