Kaynağa Gözat

fix(StatusIndicators): Improve isScreenSharing check

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
j8
Hristo Terezov 4 yıl önce
ebeveyn
işleme
b9ccc3ad8c

+ 1
- 1
react/features/filmstrip/components/web/StatusIndicators.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet