diff --git a/src/components/structures/SpaceRoomView.tsx b/src/components/structures/SpaceRoomView.tsx
index 45ba846eee8..b43b5ffeea9 100644
--- a/src/components/structures/SpaceRoomView.tsx
+++ b/src/components/structures/SpaceRoomView.tsx
@@ -279,12 +279,14 @@ const SpaceLanding: React.FC<{ space: Room }> = ({ space }) => {
-
+ {SettingsStore.getValue(UIFeature.ShowMembersListForSpaces) && (
+
+ )}
{SettingsStore.getValue(UIFeature.ShowAddMoreButtonForSpaces) && inviteButton}
{settingsButton}
diff --git a/src/components/views/rooms/RoomInfoLine.tsx b/src/components/views/rooms/RoomInfoLine.tsx
index 5e179635b67..97adaceb5bd 100644
--- a/src/components/views/rooms/RoomInfoLine.tsx
+++ b/src/components/views/rooms/RoomInfoLine.tsx
@@ -26,8 +26,8 @@ import { useRoomState } from "../../../hooks/useRoomState";
import { useFeatureEnabled } from "../../../hooks/useSettings";
import { useRoomMemberCount, useMyRoomMembership } from "../../../hooks/useRoomMembers";
import AccessibleButton from "../elements/AccessibleButton";
-import SettingsStore from "../../../../src/settings/SettingsStore";
-import { UIFeature } from "../../../../src/settings/UIFeature";
+import SettingsStore from "../../../settings/SettingsStore";
+import { UIFeature } from "../../../settings/UIFeature";
interface IProps {
room: Room;
@@ -88,7 +88,9 @@ const RoomInfoLine: FC
= ({ room }) => {
return (
{roomType}
- {SettingsStore.getValue(UIFeature.ShowSpaceLandingPageDetails) && members}
+ {SettingsStore.getValue(UIFeature.ShowMembersListForSpaces) &&
+ SettingsStore.getValue(UIFeature.ShowSpaceLandingPageDetails) &&
+ members}
);
};
diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx
index 900068622a6..3af68bcac1a 100644
--- a/src/settings/Settings.tsx
+++ b/src/settings/Settings.tsx
@@ -1243,6 +1243,10 @@ export const SETTINGS: { [setting: string]: ISetting } = {
supportedLevels: LEVELS_UI_FEATURE,
default: true,
},
+ [UIFeature.ShowMembersListForSpaces]: {
+ supportedLevels: LEVELS_UI_FEATURE,
+ default: true,
+ },
[UIFeature.ShowPlusMenuForMetaSpace]: {
supportedLevels: LEVELS_UI_FEATURE,
default: true,
diff --git a/src/settings/UIFeature.ts b/src/settings/UIFeature.ts
index 5e0bb488890..88b07fa60da 100644
--- a/src/settings/UIFeature.ts
+++ b/src/settings/UIFeature.ts
@@ -34,6 +34,7 @@ export const enum UIFeature {
TimelineEnableRelativeDates = "UIFeature.timelineEnableRelativeDates",
BulkUnverifiedSessionsReminder = "UIFeature.BulkUnverifiedSessionsReminder",
ShowCreateSpaceButton = "UIFeature.showCreateSpaceButton",
+ ShowMembersListForSpaces = "UIFeature.showMembersListForSpaces",
ShowPlusMenuForMetaSpace = "UIFeature.showPlusMenuForMetaSpace",
ShowStartChatPlusMenuForMetaSpace = "UIFeature.showStartChatPlusMenuForMetaSpace",
ShowAddRoomPlusMenuForMetaSpace = "UIFeature.showAddRoomPlusMenuForMetaSpace",