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] || [];