Bläddra i källkod

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 år sedan
förälder
incheckning
62e5d6c139

+ 1
- 1
react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js Visa fil

@@ -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'];

Laddar…
Avbryt
Spara