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(e2ee) fix config migration of e2eeLabels
Saúl Ibarra Corretgée461ec702759
diff --git a/config.js b/config.jsindex 449f05f435..8d5e3c60d9 100644--- a/config.js+++ b/config.js@@ -1065,7 +1065,12 @@ var config = {// },// e2ee: {- // labels,+ // labels: {+ // description: '',+ // label: '',+ // tooltip: '',+ // warning: '',+ // },// externallyManagedKey: false,// },@@ -1375,7 +1380,6 @@ var config = {dialOutRegionUrldisableRemoteControldisplayJids- e2eeLabelsfirefox_fake_devicegoogleApiApplicationClientIDiAmRecorderdiff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex 3f69119453..e5c9efbe08 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -293,12 +293,6 @@ export interface IConfig {};dynamicBrandingUrl?: string;e2ee?: {- e2eeLabels?: {- description?: string;- label?: string;- tooltip?: string;- warning?: string;- };externallyManagedKey?: boolean;labels?: {description?: string;diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.tsindex 72d8a2152b..142c275a15 100644--- a/react/features/base/config/reducer.ts+++ b/react/features/base/config/reducer.ts@@ -436,7 +436,7 @@ function _translateLegacyConfig(oldValue: IConfig) {newValue.e2ee = newValue.e2ee || {};if (oldValue.e2eeLabels) {- newValue.e2ee.e2eeLabels = oldValue.e2eeLabels;+ newValue.e2ee.labels = oldValue.e2eeLabels;}newValue.defaultLocalDisplayNamediff --git a/react/features/e2ee/components/E2EELabel.tsx b/react/features/e2ee/components/E2EELabel.tsxindex a9f5ed6770..546358d072 100644--- a/react/features/e2ee/components/E2EELabel.tsx+++ b/react/features/e2ee/components/E2EELabel.tsx@@ -14,7 +14,7 @@ const E2EELabel = ({ _e2eeLabels, _showLabel, t }: IProps) => {if (!_showLabel) {return null;}- const content = _e2eeLabels?.labelToolTip || t('e2ee.labelToolTip');+ const content = _e2eeLabels?.tooltip || t('e2ee.labelToolTip');return (<Tooltipdiff --git a/react/features/e2ee/components/E2EESection.tsx b/react/features/e2ee/components/E2EESection.tsxindex 71a4fd63fa..96fdf64251 100644--- a/react/features/e2ee/components/E2EESection.tsx+++ b/react/features/e2ee/components/E2EESection.tsx@@ -155,12 +155,12 @@ class E2EESection extends Component<IProps, IState> {*/function mapStateToProps(state: IReduxState) {const { enabled: e2eeEnabled, maxMode } = state['features/e2ee'];- const { e2eeLabels } = state['features/base/config'];+ const { e2ee = {} } = state['features/base/config'];let descriptionResource: string | undefined = '';- if (e2eeLabels) {- // When e2eeLabels are present, the descriptionResouse is ignored.+ if (e2ee.labels) {+ // When e2eeLabels are present, the description resource is ignored.descriptionResource = undefined;} else if (maxMode === MAX_MODE.THRESHOLD_EXCEEDED) {descriptionResource = 'dialog.e2eeDisabledDueToMaxModeDescription';@@ -173,7 +173,7 @@ function mapStateToProps(state: IReduxState) {return {_descriptionResource: descriptionResource,- _e2eeLabels: e2eeLabels,+ _e2eeLabels: e2ee.labels,_enabled: maxMode === MAX_MODE.DISABLED || e2eeEnabled,_toggled: e2eeEnabled,_everyoneSupportE2EE: Boolean(doesEveryoneSupportE2EE(state))