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: Fixes joining visitor.

damenchobb29f20a07e3
diff --git a/react/features/base/conference/middleware.any.ts b/react/features/base/conference/middleware.any.ts
index b2f25c38be..7e528c6b67 100644
--- a/react/features/base/conference/middleware.any.ts
+++ b/react/features/base/conference/middleware.any.ts
@@ -227,16 +227,20 @@ function _conferenceFailed({ dispatch, getState }: IStore, next: Function, actio
const [ vnode ] = error.params;
dispatch(overwriteConfig(newConfig)) // @ts-ignore
- .then(dispatch(conferenceWillLeave(conference)))
- .then(dispatch(disconnect()))
- .then(dispatch(setIAmVisitor(Boolean(vnode))))
+ .then(() => dispatch(conferenceWillLeave(conference)))
+ .then(() => dispatch(disconnect()))
+ .then(() => dispatch(setIAmVisitor(Boolean(vnode))))
// we do not clear local tracks on error, so we need to manually clear them
- .then(dispatch(destroyLocalTracks()))
+ .then(() => dispatch(destroyLocalTracks()))
+ .then(() => dispatch(conferenceWillInit()))
+ .then(() => dispatch(connect()))
.then(() => {
- dispatch(conferenceWillInit());
- })
- .then(dispatch(connect()));
+ // FIXME: Workaround for the web version. To be removed once we get rid of conference.js
+ if (typeof APP !== 'undefined') {
+ APP.conference.startConference([]);
+ }
+ });
break;
}
}