mirror of https://github.com/vector-im/riot-web
Fix Skeleton UI showing up when not intended.
parent
a7e6d8e7f0
commit
27d276715e
|
@ -332,7 +332,7 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
||||||
return p;
|
return p;
|
||||||
}, [] as TagID[]);
|
}, [] 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) {
|
for (const orderedTagId of tagOrder) {
|
||||||
const orderedRooms = this.state.sublists[orderedTagId] || [];
|
const orderedRooms = this.state.sublists[orderedTagId] || [];
|
||||||
|
|
Loading…
Reference in New Issue