瀏覽代碼

fix(StatusIndicators): Improve isScreenSharing check

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
master
Hristo Terezov 5 年之前
父節點
當前提交
b9ccc3ad8c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/filmstrip/components/web/StatusIndicators.js

+ 1
- 1
react/features/filmstrip/components/web/StatusIndicators.js 查看文件

@@ -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…
取消
儲存