Browse Source

fix(StatusIndicators): Improve isScreenSharing check

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
master
Hristo Terezov 5 years ago
parent
commit
b9ccc3ad8c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/filmstrip/components/web/StatusIndicators.js

+ 1
- 1
react/features/filmstrip/components/web/StatusIndicators.js View File

124
     } else if (!participant?.isFakeParticipant) { // remote participants excluding shared video
124
     } else if (!participant?.isFakeParticipant) { // remote participants excluding shared video
125
         const track = getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, participantID);
125
         const track = getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, participantID);
126
 
126
 
127
-        isScreenSharing = typeof track !== 'undefined' && track.videoType === 'desktop';
127
+        isScreenSharing = track?.videoType === 'desktop';
128
         isVideoMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.VIDEO, participantID);
128
         isVideoMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.VIDEO, participantID);
129
         isAudioMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.AUDIO, participantID);
129
         isAudioMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.AUDIO, participantID);
130
     }
130
     }

Loading…
Cancel
Save