From 27d276715e73822f4f44a84e1191bd9fcf5c4649 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 9 Nov 2020 13:53:28 +0000 Subject: [PATCH] Fix Skeleton UI showing up when not intended. --- 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 62fd70e1ec..b099beee08 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -332,7 +332,7 @@ export default class RoomList extends React.PureComponent { return p; }, [] as TagID[]); - const showSkeleton = tagOrder.every(tag => !this.state.sublists[tag]?.length); + const showSkeleton = Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length); for (const orderedTagId of tagOrder) { const orderedRooms = this.state.sublists[orderedTagId] || [];