Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Restore old config for promoted visitors.
damencho3eedc2a49d25
diff --git a/react/features/base/conference/functions.ts b/react/features/base/conference/functions.tsindex 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 jicofoif (config.oldConfig && username) {return {hosts: {diff --git a/react/features/base/conference/middleware.any.ts b/react/features/base/conference/middleware.any.tsindex 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, actiodispatch(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-ignorewindow.addEventListener(disableBeforeUnloadHandlers ? 'unload' : 'beforeunload', beforeUnloadHandler);