Explorar el Código

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
Дамян Минков hace 4 años
padre
commit
62e5d6c139

+ 1
- 1
react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.js Ver fichero

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

Loading…
Cancelar
Guardar