From 2c11f0bb7c78c409b30a5b1e2f363767e1d2539b Mon Sep 17 00:00:00 2001 From: Ayush Kumar <2580ayush2580@gmail.com> Date: Thu, 28 Jan 2021 03:09:52 +0530 Subject: [PATCH] Added condition to hide the 'find a room' UI unless the user is explicitly filtering the list --- src/components/views/rooms/RoomList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 2d6396c83f..45db15df7c 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -455,8 +455,9 @@ export default class RoomList extends React.PureComponent { const unfilteredLists = RoomListStore.instance.unfilteredLists const unfilteredRooms = unfilteredLists[DefaultTagID.Untagged] || []; const unfilteredHistorical = unfilteredLists[DefaultTagID.Archived] || []; + const unfilteredFavourite = unfilteredLists[DefaultTagID.Favourite] || []; // show a prompt to join/create rooms if the user is in 0 rooms and no historical - if (unfilteredRooms.length < 1 && unfilteredHistorical < 1) { + if (unfilteredRooms.length < 1 && unfilteredHistorical < 1 && unfilteredFavourite < 1) { explorePrompt =
{_t("Use the + to make a new room or explore existing ones below")}