From 4c2283dec6bbb18c8ddffc676fe693a3510ff4c5 Mon Sep 17 00:00:00 2001 From: Reza Mohseni Date: Thu, 22 Aug 2024 14:52:37 +0200 Subject: [PATCH] added and implemented UIFeature.ShowInviteToSpaceFromPeoplePlus in RoomList.tsx --- src/components/views/rooms/RoomList.tsx | 4 ++-- src/settings/Settings.tsx | 4 ++++ src/settings/UIFeature.ts | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index c277bd5aca9..e93e094e206 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -31,7 +31,7 @@ import { MatrixClientPeg } from "../../../MatrixClientPeg"; import PosthogTrackers from "../../../PosthogTrackers"; import SettingsStore from "../../../settings/SettingsStore"; import { useFeatureEnabled } from "../../../hooks/useSettings"; -import { UIComponent } from "../../../settings/UIFeature"; +import { UIComponent, UIFeature } from "../../../settings/UIFeature"; import { RoomNotificationStateStore } from "../../../stores/notifications/RoomNotificationStateStore"; import { ITagMap } from "../../../stores/room-list/algorithms/models"; import { DefaultTagID, TagID } from "../../../stores/room-list/models"; @@ -149,7 +149,7 @@ const DmAuxButton: React.FC = ({ tabIndex, dispatcher = default }} /> )} - {showInviteUsers && ( + {showInviteUsers && SettingsStore.getValue(UIFeature.ShowInviteToSpaceFromPeoplePlus) && (