Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(dynamic-branding): Add peopleSearchUrl

Hristo Terezovd29a77b15f93
diff --git a/react/features/analytics/functions.ts b/react/features/analytics/functions.ts
index a788b29f53..8c5dd63beb 100644
--- a/react/features/analytics/functions.ts
+++ b/react/features/analytics/functions.ts
@@ -213,7 +213,6 @@ export function initAnalytics(store: IStore, handlers: Array<Object>): boolean {
overwritesDeploymentUrls?: boolean;
overwritesEtherpadBase?: boolean;
overwritesLiveStreamingUrls?: boolean;
- overwritesPeopleSearchUrl?: boolean;
overwritesSalesforceUrl?: boolean;
overwritesSupportUrl?: boolean;
server?: string;
@@ -257,7 +256,6 @@ export function initAnalytics(store: IStore, handlers: Array<Object>): boolean {
// TODO: Temporary metric. To be removed once we don't need it.
permanentProperties.overwritesSupportUrl = 'interfaceConfig.SUPPORT_URL' in params;
permanentProperties.overwritesSalesforceUrl = 'config.salesforceUrl' in params;
- permanentProperties.overwritesPeopleSearchUrl = 'config.peopleSearchUrl' in params;
permanentProperties.overwritesDefaultLogoUrl = 'config.defaultLogoUrl' in params;
permanentProperties.overwritesEtherpadBase = 'config.etherpad_base' in params;
diff --git a/react/features/base/config/middleware.ts b/react/features/base/config/middleware.ts
index ac3010ec78..0acb9d2969 100644
--- a/react/features/base/config/middleware.ts
+++ b/react/features/base/config/middleware.ts
@@ -118,7 +118,8 @@ function _setDynamicBrandingData({ dispatch }: IStore, next: Function, action: A
liveStreamingDialogUrls = {},
preCallTest = {},
salesforceUrl,
- userDocumentationUrl
+ userDocumentationUrl,
+ peopleSearchUrl
} = action.value;
const { helpUrl, termsUrl, dataPrivacyUrl } = liveStreamingDialogUrls;
@@ -154,6 +155,10 @@ function _setDynamicBrandingData({ dispatch }: IStore, next: Function, action: A
config.salesforceUrl = salesforceUrl;
}
+ if (peopleSearchUrl) {
+ config.peopleSearchUrl = peopleSearchUrl;
+ }
+
const { enabled, iceUrl } = preCallTest;
if (typeof enabled === 'boolean') {
diff --git a/react/features/dynamic-branding/middleware.native.ts b/react/features/dynamic-branding/middleware.native.ts
index f48c46d531..d39a53eec4 100644
--- a/react/features/dynamic-branding/middleware.native.ts
+++ b/react/features/dynamic-branding/middleware.native.ts
@@ -27,10 +27,11 @@ MiddlewareRegistry.register(store => next => action => {
inviteDomain,
labels,
liveStreamingDialogUrls,
+ peopleSearchUrl,
salesforceUrl,
sharedVideoAllowedURLDomains,
supportUrl,
- userDocumentationUrl
+ userDocumentationUrl,
} = action.value;
action.value = {
@@ -43,6 +44,7 @@ MiddlewareRegistry.register(store => next => action => {
inviteDomain,
labels,
liveStreamingDialogUrls,
+ peopleSearchUrl,
salesforceUrl,
sharedVideoAllowedURLDomains,
supportUrl,