From 93d0ee710bfe34a2ac77a5eabcd46744fa44ea70 Mon Sep 17 00:00:00 2001 From: Christoph Settgast Date: Sun, 28 Jan 2024 13:26:16 +0100 Subject: [PATCH] fix(deeplinking): allow partial config of deeplinking and defaults for the remaining (#14285) --- react/features/base/config/functions.web.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/react/features/base/config/functions.web.ts b/react/features/base/config/functions.web.ts index dac0fb14b224..00f4ddb0cc8b 100644 --- a/react/features/base/config/functions.web.ts +++ b/react/features/base/config/functions.web.ts @@ -94,11 +94,11 @@ export function areAudioLevelsEnabled(state: IReduxState): boolean { * @returns {void} */ export function _setDeeplinkingDefaults(deeplinking: IDeeplinkingConfig) { - const { - desktop = {} as IDeeplinkingDesktopConfig, - android = {} as IDeeplinkingMobileConfig, - ios = {} as IDeeplinkingMobileConfig - } = deeplinking; + deeplinking.desktop = deeplinking.desktop || {} as IDeeplinkingDesktopConfig; + deeplinking.android = deeplinking.android || {} as IDeeplinkingMobileConfig; + deeplinking.ios = deeplinking.ios || {} as IDeeplinkingMobileConfig; + + const { android, desktop, ios } = deeplinking; desktop.appName = desktop.appName || 'Jitsi Meet'; desktop.appScheme = desktop.appScheme || 'jitsi-meet';