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(deeplinking) Consider deprecated config (#12758)

Horatiu Muresan9422f48536e0
diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.ts
index 81d875ebb7..dd947e7e07 100644
--- a/react/features/base/config/reducer.ts
+++ b/react/features/base/config/reducer.ts
@@ -298,8 +298,13 @@ function _translateInterfaceConfig(oldValue: IConfig) {
}
}
- // if we have `deeplinking` defined, ignore deprecated values. Otherwise, compose the config.
- if (!oldValue.deeplinking) {
+ // if we have `deeplinking` defined, ignore deprecated values, except `disableDeepLinking`.
+ // Otherwise, compose the config.
+ if (oldValue.deeplinking && newValue.deeplinking) { // make TS happy
+ newValue.deeplinking.disabled = oldValue.deeplinking.hasOwnProperty('disabled')
+ ? oldValue.deeplinking.disabled
+ : Boolean(oldValue.disableDeepLinking);
+ } else {
const disabled = Boolean(oldValue.disableDeepLinking);
const deeplinking: IDeeplinkingConfig = {
desktop: {} as IDeeplinkingPlatformConfig,