-
{_t("Advanced")}
- {this._renderGroup(PreferencesUserSettingsTab.ADVANCED_SETTINGS)}
+
{_t("General")}
+ {this._renderGroup(PreferencesUserSettingsTab.GENERAL_SETTINGS)}
{minimizeToTrayOption}
{autoHideMenuOption}
{autoLaunchOption}
diff --git a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
index d30bcc34e0..9984baeb13 100644
--- a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
+++ b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
@@ -30,6 +30,8 @@ import dis from "../../../../../dispatcher/dispatcher";
import {privateShouldBeEncrypted} from "../../../../../createRoom";
import {SettingLevel} from "../../../../../settings/SettingLevel";
import SecureBackupPanel from "../../SecureBackupPanel";
+import SettingsStore from "../../../../../settings/SettingsStore";
+import {UIFeature} from "../../../../../settings/UIFeature";
export class IgnoredUser extends React.Component {
static propTypes = {
@@ -311,15 +313,13 @@ export default class SecurityUserSettingsTab extends React.Component {
// can remove this.
const CrossSigningPanel = sdk.getComponent('views.settings.CrossSigningPanel');
const crossSigning = (
-
-
{_t("Cross-signing")}
-
-
-
+
+
{_t("Cross-signing")}
+
+
- );
-
- const E2eAdvancedPanel = sdk.getComponent('views.settings.E2eAdvancedPanel');
+
+ );
let warning;
if (!privateShouldBeEncrypted()) {
@@ -352,6 +352,19 @@ export default class SecurityUserSettingsTab extends React.Component {
;
}
+ const E2eAdvancedPanel = sdk.getComponent('views.settings.E2eAdvancedPanel');
+ let advancedSection;
+ if (SettingsStore.getValue(UIFeature.AdvancedSettings)) {
+ advancedSection = <>
+
{_t("Advanced")}
+
+ {this._renderIgnoredUsers()}
+ {this._renderManageInvites()}
+
+
+ >;
+ }
+
return (
{warning}
@@ -381,12 +394,7 @@ export default class SecurityUserSettingsTab extends React.Component {
{this._renderCurrentDeviceInfo()}
{ privacySection }
-
{_t("Advanced")}
-
- {this._renderIgnoredUsers()}
- {this._renderManageInvites()}
-
-
+ { advancedSection }
);
}
diff --git a/src/settings/Settings.ts b/src/settings/Settings.ts
index 2a699897a6..d78f75b346 100644
--- a/src/settings/Settings.ts
+++ b/src/settings/Settings.ts
@@ -660,4 +660,8 @@ export const SETTINGS: {[setting: string]: ISetting} = {
supportedLevels: LEVELS_UI_FEATURE,
default: true,
},
+ [UIFeature.AdvancedSettings]: {
+ supportedLevels: LEVELS_UI_FEATURE,
+ default: true,
+ },
};
diff --git a/src/settings/UIFeature.ts b/src/settings/UIFeature.ts
index 92a34e9fbb..5c579054f0 100644
--- a/src/settings/UIFeature.ts
+++ b/src/settings/UIFeature.ts
@@ -28,4 +28,5 @@ export enum UIFeature {
IdentityServer = "UIFeature.identityServer",
ThirdPartyID = "UIFeature.thirdPartyId",
Flair = "UIFeature.flair",
+ AdvancedSettings = "UIFeature.advancedSettings",
}