Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(prejoin) no initial tracks when using URL override to disable it
Saúl Ibarra Corretgé000c370c64a0
diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.tsindex ac4c7e826c..17ab00108f 100644--- a/react/features/base/config/functions.any.ts+++ b/react/features/base/config/functions.any.ts@@ -7,6 +7,7 @@ import { isEmpty, mergeWith, pick } from 'lodash-es';import { IReduxState } from '../../app/types';import { getLocalParticipant } from '../participants/functions';+import { isEmbedded } from '../util/embedUtils';import { parseURLParams } from '../util/parseURLParams';import { IConfig } from './configType';@@ -335,7 +336,7 @@ export function setConfigFromURLParams(overrideConfigJSON(config, interfaceConfig, json);- // Print warning about depricated URL params+ // Print warning about deprecated URL paramsif ('interfaceConfig.SUPPORT_URL' in params) {logger.warn('Using SUPPORT_URL interfaceConfig URL overwrite is deprecated.'+ ' Please use supportUrl from advanced branding!');@@ -371,6 +372,14 @@ export function setConfigFromURLParams(logger.warn('Using liveStreaming config URL overwrite and/or LIVE_STREAMING_HELP_LINK interfaceConfig URL'+ ' overwrite is deprecated. Please use liveStreaming from advanced branding!');}++ // When not in an iframe, start without media if the pre-join page is not enabled.+ if (!isEmbedded()+ && ('config.prejoinConfig.enabled' in params || 'config.prejoinPageEnabled' in params)+ && (config.prejoinConfig?.enabled === false || config.prejoinPageEnabled === false)) {+ logger.warn('Using prejoinConfig.enabled config URL overwrite implies starting without media.');+ config.disableInitialGUM = true;+ }}/* eslint-enable max-params */diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.tsindex 00c9c4bded..8b039d60c1 100644--- a/react/features/base/config/reducer.ts+++ b/react/features/base/config/reducer.ts@@ -406,9 +406,7 @@ function _translateLegacyConfig(oldValue: IConfig) {}newValue.prejoinConfig = oldValue.prejoinConfig || {};- if (oldValue.hasOwnProperty('prejoinPageEnabled')- && !newValue.prejoinConfig.hasOwnProperty('enabled')- ) {+ if (oldValue.hasOwnProperty('prejoinPageEnabled')) {newValue.prejoinConfig.enabled = oldValue.prejoinPageEnabled;}