Quellcode durchsuchen

fix(StatusIndicators): Improve isScreenSharing check

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
master
Hristo Terezov vor 5 Jahren
Ursprung
Commit
b9ccc3ad8c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      react/features/filmstrip/components/web/StatusIndicators.js

+ 1
- 1
react/features/filmstrip/components/web/StatusIndicators.js Datei anzeigen

@@ -124,7 +124,7 @@ function _mapStateToProps(state, ownProps) {
124 124
     } else if (!participant?.isFakeParticipant) { // remote participants excluding shared video
125 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 128
         isVideoMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.VIDEO, participantID);
129 129
         isAudioMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.AUDIO, participantID);
130 130
     }

Laden…
Abbrechen
Speichern