From 0f98c9127d5cb2c6d6349c42dc05b2877f506fb3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 15 Sep 2021 15:08:23 +0100 Subject: [PATCH] Fix checks to show prompt to start new chats We compared the length of the list rooms but not historical or favourite. Caught by new version of typescript when I tried to upgrade. --- src/components/views/rooms/RoomList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 541d0e1d9d..5ae2939c74 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -547,7 +547,7 @@ export default class RoomList extends React.PureComponent { 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 && unfilteredFavourite < 1) { + if (unfilteredRooms.length < 1 && unfilteredHistorical.length < 1 && unfilteredFavourite.length < 1) { explorePrompt =
{ _t("Use the + to make a new room or explore existing ones below") }