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(config) avoid using legacy config options

Saúl Ibarra Corretgé433e212e2028
diff --git a/react/features/base/config/reducer.js b/react/features/base/config/reducer.js
index ac002a0ded..329d5d0e41 100644
--- a/react/features/base/config/reducer.js
+++ b/react/features/base/config/reducer.js
@@ -224,7 +224,8 @@ function _translateLegacyConfig(oldValue: Object) {
}
});
- if (typeof interfaceConfig === 'object' && Array.isArray(interfaceConfig.TOOLBAR_BUTTONS)) {
+ if (!Array.isArray(oldValue.toolbarButtons)
+ && typeof interfaceConfig === 'object' && Array.isArray(interfaceConfig.TOOLBAR_BUTTONS)) {
newValue.toolbarButtons = interfaceConfig.TOOLBAR_BUTTONS;
}