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(giphy) disable feature from dynamic branding (#12620)

Mihaela Dumitru33e4da32e275
diff --git a/react/features/dynamic-branding/reducer.ts b/react/features/dynamic-branding/reducer.ts
index 3b6a454748..2d6fd4291e 100644
--- a/react/features/dynamic-branding/reducer.ts
+++ b/react/features/dynamic-branding/reducer.ts
@@ -156,6 +156,7 @@ export interface IDynamicBrandingState {
logoImageUrl: string;
muiBrandedTheme?: boolean;
premeetingBackground: string;
+ showGiphyIntegration?: boolean;
useDynamicBrandingData: boolean;
virtualBackgrounds: Array<Image>;
}
@@ -178,6 +179,7 @@ ReducerRegistry.register<IDynamicBrandingState>(STORE_NAME, (state = DEFAULT_STA
logoImageUrl,
muiBrandedTheme,
premeetingBackground,
+ showGiphyIntegration,
virtualBackgrounds
} = action.value;
@@ -193,6 +195,7 @@ ReducerRegistry.register<IDynamicBrandingState>(STORE_NAME, (state = DEFAULT_STA
logoImageUrl,
muiBrandedTheme,
premeetingBackground,
+ showGiphyIntegration,
customizationFailed: false,
customizationReady: true,
useDynamicBrandingData: true,
diff --git a/react/features/gifs/function.any.ts b/react/features/gifs/function.any.ts
index a8754296e2..41754e8804 100644
--- a/react/features/gifs/function.any.ts
+++ b/react/features/gifs/function.any.ts
@@ -68,12 +68,13 @@ export function getGifAPIKey(state: IReduxState) {
export function isGifEnabled(state: IReduxState) {
const { disableThirdPartyRequests } = state['features/base/config'];
const { giphy } = state['features/base/config'];
+ const showGiphyIntegration = state['features/dynamic-branding']?.showGiphyIntegration !== false;
if (navigator.product === 'ReactNative' && window.JITSI_MEET_LITE_SDK) {
return false;
}
- return Boolean(!disableThirdPartyRequests && giphy?.enabled && Boolean(giphy?.sdkKey));
+ return showGiphyIntegration && Boolean(!disableThirdPartyRequests && giphy?.enabled && Boolean(giphy?.sdkKey));
}
/**