浏览代码

fix: Fixes undefined error causing to stop reloads.

Jibri was hitting a problem where it reloads and in certain cases (remote user is screensharing) we hit this participant undefined, which stops reload and stops recording.
It is still not obvious why we try to render this on leaving the conference and for a participant that is not in the conference ... this re-render should not happen as this component should be removed from its parent when the participant is not existing.
master
Дамян Минков 4 年前
父节点
当前提交
62e5d6c139
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js

+ 1
- 1
react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js 查看文件

@@ -388,7 +388,7 @@ function _mapStateToProps(state, ownProps) {
388 388
     const { disableKick, disableGrantModerator } = remoteVideoMenu;
389 389
     let _remoteControlState = null;
390 390
     const participant = getParticipantById(state, participantID);
391
-    const _participantDisplayName = participant.name;
391
+    const _participantDisplayName = participant?.name;
392 392
     const _isRemoteControlSessionActive = participant?.remoteControlSessionStatus ?? false;
393 393
     const _supportsRemoteControl = participant?.supportsRemoteControl ?? false;
394 394
     const { active, controller } = state['features/remote-control'];

正在加载...
取消
保存