Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(remote-control):Pin the control participant SS

Hristo Terezove4d4bec175e4
diff --git a/react/features/remote-control/actions.ts b/react/features/remote-control/actions.ts
index 07895a4177..9424f8f4a9 100644
--- a/react/features/remote-control/actions.ts
+++ b/react/features/remote-control/actions.ts
@@ -207,14 +207,14 @@ export function processPermissionRequestReply(participantId: string, event: any)
// the remote control permissions has been granted
// pin the controlled participant
const pinnedParticipant = getPinnedParticipant(state);
- const virtualScreenshareParticipantId = getVirtualScreenshareParticipantByOwnerId(state, participantId);
+ const virtualScreenshareParticipant = getVirtualScreenshareParticipantByOwnerId(state, participantId);
const pinnedId = pinnedParticipant?.id;
// @ts-ignore
- if (virtualScreenshareParticipantId && pinnedId !== virtualScreenshareParticipantId) {
+ if (virtualScreenshareParticipant?.id && pinnedId !== virtualScreenshareParticipant?.id) {
// @ts-ignore
- dispatch(pinParticipant(virtualScreenshareParticipantId));
- } else if (!virtualScreenshareParticipantId && pinnedId !== participantId) {
+ dispatch(pinParticipant(virtualScreenshareParticipant?.id));
+ } else if (!virtualScreenshareParticipant?.id && pinnedId !== participantId) {
dispatch(pinParticipant(participantId));
}
}