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): do not execute leave conference on web

paweldomas675eea7b9909
diff --git a/react/features/base/conference/middleware.js b/react/features/base/conference/middleware.js
index c6006c44fa..60e9dfed11 100644
--- a/react/features/base/conference/middleware.js
+++ b/react/features/base/conference/middleware.js
@@ -108,6 +108,13 @@ MiddlewareRegistry.register(store => next => action => {
function _conferenceFailed(store, next, action) {
const result = next(action);
+ // FIXME: Workaround for the web version. Currently, the creation of the
+ // conference is handled by /conference.js and appropriate failure handlers
+ // are set there.
+ if (typeof APP !== 'undefined') {
+ return result;
+ }
+
// XXX After next(action), it is clear whether the error is recoverable.
const { conference, error } = action;