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
feat(dynamic-branding): Add customParticipantMenuButtons
Hristo Terezov89556ecd66ac
diff --git a/react/features/analytics/functions.ts b/react/features/analytics/functions.tsindex 86a275bf6c..5d7f8a4f87 100644--- a/react/features/analytics/functions.ts+++ b/react/features/analytics/functions.ts@@ -208,7 +208,6 @@ export function initAnalytics(store: IStore, handlers: Array<Object>): boolean {isPromotedFromVisitor?: boolean;isVisitor?: boolean;overwritesCustomButtonsWithURL?: boolean;- overwritesCustomParticipantButtonsWithURL?: boolean;overwritesDefaultLogoUrl?: boolean;overwritesDeploymentUrls?: boolean;overwritesLiveStreamingUrls?: boolean;@@ -283,11 +282,6 @@ export function initAnalytics(store: IStore, handlers: Array<Object>): boolean {permanentProperties.overwritesCustomButtonsWithURL = Boolean(customToolbarButtons.find(({ icon }: { icon: string; }) => isDataURL(icon)));- const customParticipantMenuButtons = params['config.customParticipantMenuButtons'] ?? [];-- permanentProperties.overwritesCustomParticipantButtonsWithURL = Boolean(- customParticipantMenuButtons.find(({ icon }: { icon: string; }) => isDataURL(icon)));-// Optionally, include local deployment information based on the// contents of window.config.deploymentInfo.if (deploymentInfo) {diff --git a/react/features/base/config/middleware.ts b/react/features/base/config/middleware.tsindex 0750809a3c..d2b0fa0c92 100644--- a/react/features/base/config/middleware.ts+++ b/react/features/base/config/middleware.ts@@ -114,13 +114,14 @@ function _setConfig({ dispatch, getState }: IStore, next: Function, action: AnyAfunction _setDynamicBrandingData({ dispatch }: IStore, next: Function, action: AnyAction) {const config: IConfig = {};const {+ customParticipantMenuButtons,downloadAppsUrl,etherpadBase,liveStreamingDialogUrls = {},preCallTest = {},salesforceUrl,userDocumentationUrl,- peopleSearchUrl+ peopleSearchUrl,} = action.value;const { helpUrl, termsUrl, dataPrivacyUrl } = liveStreamingDialogUrls;@@ -178,6 +179,10 @@ function _setDynamicBrandingData({ dispatch }: IStore, next: Function, action: Aconfig.prejoinConfig.preCallTestICEUrl = iceUrl;}+ if (customParticipantMenuButtons) {+ config.customParticipantMenuButtons = customParticipantMenuButtons;+ }+dispatch(updateConfig(config));return next(action);diff --git a/react/features/dynamic-branding/middleware.native.ts b/react/features/dynamic-branding/middleware.native.tsindex 92fcae4fc1..6ae8f47aee 100644--- a/react/features/dynamic-branding/middleware.native.ts+++ b/react/features/dynamic-branding/middleware.native.ts@@ -22,6 +22,7 @@ MiddlewareRegistry.register(store => next => action => {backgroundColor,backgroundImageUrl,brandedIcons,+ customParticipantMenuButtons,didPageUrl,downloadAppsUrl,etherpadBase,@@ -40,6 +41,7 @@ MiddlewareRegistry.register(store => next => action => {backgroundColor,backgroundImageUrl,brandedIcons,+ customParticipantMenuButtons,didPageUrl,downloadAppsUrl,etherpadBase,