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: Restore old config for promoted visitors.

damencho3eedc2a49d25
diff --git a/react/features/base/conference/functions.ts b/react/features/base/conference/functions.ts
index 90a70d36cd..f450e34fe8 100644
--- a/react/features/base/conference/functions.ts
+++ b/react/features/base/conference/functions.ts
@@ -300,7 +300,8 @@ export function getVisitorOptions(stateful: IStateful, params: Array<string>) {
if (!vnode) {
// this is redirecting back to main, lets restore config
- // no point of updating disableFocus, we can skip the initial iq to jicofo
+ // not updating disableFocus, as if the room capacity is full the promotion to the main room will fail
+ // and the visitor will be redirected back to a vnode from jicofo
if (config.oldConfig && username) {
return {
hosts: {
diff --git a/react/features/base/conference/middleware.any.ts b/react/features/base/conference/middleware.any.ts
index d6f171eb57..306ff3542d 100644
--- a/react/features/base/conference/middleware.any.ts
+++ b/react/features/base/conference/middleware.any.ts
@@ -289,6 +289,12 @@ function _conferenceJoined({ dispatch, getState }: IStore, next: Function, actio
dispatch(conferenceWillLeave(conference));
};
+ if (!iAmVisitor(getState())) {
+ // if a visitor is promoted back to main room and want to join an empty breakout room
+ // we need to send iq to jicofo, so it can join/create the breakout room
+ dispatch(overwriteConfig({ disableFocus: false }));
+ }
+
// @ts-ignore
window.addEventListener(disableBeforeUnloadHandlers ? 'unload' : 'beforeunload', beforeUnloadHandler);