fix(deeplinking) Consider deprecated config (#12758)

pull/12766/head jitsi-meet_8209
Horatiu Muresan 2 years ago committed by GitHub
parent 122e80dcf1
commit 9422f48536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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,

Loading…
Cancel
Save