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.
This commit is contained in:
Дамян Минков 2021-09-17 14:29:17 -05:00
parent 06d8956bdb
commit 62e5d6c139
1 changed files with 1 additions and 1 deletions

View File

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