diff --git a/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx b/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx index 9eb4c6eb02..2f80ad97a6 100644 --- a/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx +++ b/src/components/views/spaces/SpaceSettingsVisibilityTab.tsx @@ -120,6 +120,22 @@ const SpaceSettingsVisibilityTab = ({ matrixClient: cli, space }: IProps) => { ; } + let addressesSection; + if (visibility !== SpaceVisibility.Private) { + addressesSection = <> + {_t("Address")} +
+ +
+ ; + } + return
{_t("Visibility")}
@@ -164,16 +180,7 @@ const SpaceSettingsVisibilityTab = ({ matrixClient: cli, space }: IProps) => { { _t("Recommended for public spaces.") }
- {_t("Address")} -
- -
+ { addressesSection } ; };