mirror of
https://github.com/vector-im/element-web.git
synced 2026-02-16 13:12:05 +01:00
Merge pull request #5407 from matrix-org/t3chguy/fix/15670
Fix Skeleton UI showing up when not intended.
This commit is contained in:
commit
a67da01419
@ -332,7 +332,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
||||
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] || [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user