diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 62fd70e1ec..d952c137cd 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -332,7 +332,8 @@ export default class RoomList extends React.PureComponent { return p; }, [] as TagID[]); - const showSkeleton = tagOrder.every(tag => !this.state.sublists[tag]?.length); + // show a skeleton UI if the user is in no rooms + const showSkeleton = Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length); for (const orderedTagId of tagOrder) { const orderedRooms = this.state.sublists[orderedTagId] || [];