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 JitsiConference access

Lyubo Marinovfa9549582fde
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js
index c43bcc216a..494d43a92a 100644
--- a/modules/UI/shared_video/SharedVideo.js
+++ b/modules/UI/shared_video/SharedVideo.js
@@ -306,7 +306,12 @@ export default class SharedVideoManager {
SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
APP.store.dispatch(participantJoined({
- conference: APP.conference,
+
+ // FIXME The cat is out of the bag already or rather _room is
+ // not private because it is used in multiple other places
+ // already such as AbstractPageReloadOverlay and
+ // JitsiMeetLogStorage.
+ conference: APP.conference._room,
id: self.url,
isBot: true,
name: 'YouTube'
@@ -517,7 +522,7 @@ export default class SharedVideoManager {
UIEvents.UPDATE_SHARED_VIDEO, null, 'removed');
});
- APP.store.dispatch(participantLeft(this.url, APP.conference));
+ APP.store.dispatch(participantLeft(this.url, APP.conference._room));
this.url = null;
this.isSharedVideoShown = false;
diff --git a/react/features/base/participants/actions.js b/react/features/base/participants/actions.js
index 59575e3067..ead4b0a32a 100644
--- a/react/features/base/participants/actions.js
+++ b/react/features/base/participants/actions.js
@@ -2,6 +2,7 @@
import throttle from 'lodash/throttle';
+import { set } from '../redux';
import { showNotification } from '../../notifications';
import {
@@ -113,10 +114,7 @@ export function localParticipantIdChanged(id) {
* }}
*/
export function localParticipantJoined(participant = {}) {
- return participantJoined({
- ...participant,
- local: true
- });
+ return participantJoined(set(participant, 'local', true));
}
/**