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): allow partial config of deeplinking and defaults for the remaining (#14285)

Christoph Settgast93d0ee710bfe
diff --git a/react/features/base/config/functions.web.ts b/react/features/base/config/functions.web.ts
index dac0fb14b2..00f4ddb0cc 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';