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(base/conference/reducer): check if room is defined

paweldomas033aa0dd6ef4
diff --git a/react/features/base/conference/reducer.js b/react/features/base/conference/reducer.js
index 7a4a361db2..2791f94c6c 100644
--- a/react/features/base/conference/reducer.js
+++ b/react/features/base/conference/reducer.js
@@ -213,7 +213,8 @@ function _conferenceJoined(state, { conference }) {
// i.e. password-protected is private to lib-jitsi-meet. However, the
// library does not fire LOCK_STATE_CHANGED upon joining a JitsiConference
// with a password.
- const locked = conference.room.locked ? LOCKED_REMOTELY : undefined;
+ // FIXME Technically JitsiConference.room is a private field.
+ const locked = conference.room && conference.room.locked ? LOCKED_REMOTELY : undefined;
return assign(state, {
authRequired: undefined,