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(config): add reducedUIEnabled config to control web side
Calin-Teodor3baede6ff1ca
diff --git a/config.js b/config.jsindex b560e590be..42e009ffb5 100644--- a/config.js+++ b/config.js@@ -927,6 +927,9 @@ var config = {// [ 'microphone', 'camera' ]// ],+ // Enable reduced UI on web.+ // reducedUIEnabled: true,+// Overrides the buttons displayed in the main toolbar for reduced UI.// When there isn't an override for a certain configuration the default jitsi-meet configuration will be used.// The order of the buttons in the array is preserved.diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex eed32a999d..cb4757a4cb 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -559,6 +559,7 @@ export interface IConfig {skipConsentInMeeting?: boolean;suggestRecording?: boolean;};+ reducedUIEnabled?: boolean;reducedUImainToolbarButtons?: Array<string>;remoteVideoMenu?: {disableDemote?: boolean;diff --git a/react/features/base/config/configWhitelist.ts b/react/features/base/config/configWhitelist.tsindex 5d0520c500..dd69a74d0a 100644--- a/react/features/base/config/configWhitelist.ts+++ b/react/features/base/config/configWhitelist.ts@@ -215,6 +215,7 @@ export default ['recordings.showPrejoinWarning','recordings.showRecordingLink','recordings.suggestRecording',+ 'reducedUIEnabled','reducedUImainToolbarButtons','replaceParticipant','resolution',diff --git a/react/features/base/responsive-ui/actions.ts b/react/features/base/responsive-ui/actions.tsindex 7b94afe41f..4ba9cf33a4 100644--- a/react/features/base/responsive-ui/actions.ts+++ b/react/features/base/responsive-ui/actions.ts@@ -43,6 +43,7 @@ export function clientResized(clientWidth: number, clientHeight: number) {if (navigator.product !== 'ReactNative') {const state = getState();+ const { reducedUIEnabled = true } = state['features/base/config'];const { isOpen: isChatOpen, width } = state['features/chat'];if (isChatOpen) {@@ -51,7 +52,7 @@ export function clientResized(clientWidth: number, clientHeight: number) {availableWidth -= getParticipantsPaneWidth(state);- dispatch(setReducedUI(availableWidth, clientHeight));+ reducedUIEnabled && dispatch(setReducedUI(availableWidth, clientHeight));}batch(() => {