Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Fix loading config from non-default domains

Saúl Ibarra Corretgéa1da6bff1a96
diff --git a/react/features/base/lib-jitsi-meet/middleware.js b/react/features/base/lib-jitsi-meet/middleware.js
index 2f04010783..7acee29e3a 100644
--- a/react/features/base/lib-jitsi-meet/middleware.js
+++ b/react/features/base/lib-jitsi-meet/middleware.js
@@ -99,11 +99,11 @@ function _setConfig(store, next, action) {
const disposeLibPromise
= initialized ? dispatch(disposeLib()) : Promise.resolve();
- // Let the new config into the Redux store (because initLib will read it
- // from there).
- const nextState = next(action);
-
- disposeLibPromise.then(dispatch(initLib()));
+ disposeLibPromise.then(() => {
+ // Let the new config into the Redux store (because initLib will read it
+ // from there).
+ next(action);
- return nextState;
+ dispatch(initLib());
+ });
}