diff --git a/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx b/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx index 5cb76ebc25..f895a15f48 100644 --- a/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx +++ b/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx @@ -634,6 +634,22 @@ export default class SecurityRoomSettingsTab extends React.Component + + { this.state.showAdvancedSection ? _t("Hide advanced") : _t("Show advanced") } + + { this.state.showAdvancedSection && this.renderAdvanced() } + + ); + } + return (
{ _t("Security & Privacy") }
@@ -659,15 +675,7 @@ export default class SecurityRoomSettingsTab extends React.Component - - { this.state.showAdvancedSection ? _t("Hide advanced") : _t("Show advanced") } - - { this.state.showAdvancedSection && this.renderAdvanced() } - + { advanced } { historySection }
); diff --git a/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx b/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx index b48f5c79c6..90d598cb16 100644 --- a/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx +++ b/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx @@ -94,30 +94,32 @@ const SpaceSettingsVisibilityTab = ({ matrixClient: cli, space }: IProps) => { const canonicalAliasEv = space.currentState.getStateEvents(EventType.RoomCanonicalAlias, ""); let advancedSection; - if (showAdvancedSection) { - advancedSection = <> - - { _t("Hide advanced") } - + if (visibility === SpaceVisibility.Unlisted) { + if (showAdvancedSection) { + advancedSection = <> + + { _t("Hide advanced") } + - -

- { _t("Guests can join a space without having an account.") } -
- { _t("This may be useful for public spaces.") } -

- ; - } else { - advancedSection = <> - - { _t("Show advanced") } - - ; + +

+ { _t("Guests can join a space without having an account.") } +
+ { _t("This may be useful for public spaces.") } +

+ ; + } else { + advancedSection = <> + + { _t("Show advanced") } + + ; + } } let addressesSection;