From 11480e8641a4776defab4e629eb102d0b5bd6b4d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 11 Oct 2021 10:50:49 +0100 Subject: [PATCH] Hide Skeleton UI if you have Suggested Rooms --- src/components/views/rooms/RoomList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 5ae2939c74..326e5cd892 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -449,8 +449,8 @@ export default class RoomList extends React.PureComponent { } private renderSublists(): React.ReactElement[] { - // show a skeleton UI if the user is in no rooms and they are not filtering - const showSkeleton = !this.state.isNameFiltering && + // show a skeleton UI if the user is in no rooms and they are not filtering and have no suggested rooms + const showSkeleton = !this.state.isNameFiltering && !this.state.suggestedRooms?.length && Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length); return TAG_ORDER.reduce((tags, tagId) => {