Skip to content

Commit a67da01

Browse files
authored
Merge pull request matrix-org#5407 from matrix-org/t3chguy/fix/15670
Fix Skeleton UI showing up when not intended.
2 parents 73eb43d + a5d827c commit a67da01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/rooms/RoomList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
332332
return p;
333333
}, [] as TagID[]);
334334

335-
const showSkeleton = tagOrder.every(tag => !this.state.sublists[tag]?.length);
335+
// show a skeleton UI if the user is in no rooms
336+
const showSkeleton = Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
336337

337338
for (const orderedTagId of tagOrder) {
338339
const orderedRooms = this.state.sublists[orderedTagId] || [];

0 commit comments

Comments
 (0)