mirror of https://github.com/vector-im/riot-web
Hide Skeleton UI if you have Suggested Rooms
parent
e54d803343
commit
11480e8641
|
@ -449,8 +449,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderSublists(): React.ReactElement[] {
|
private renderSublists(): React.ReactElement[] {
|
||||||
// show a skeleton UI if the user is in no rooms and they are not filtering
|
// show a skeleton UI if the user is in no rooms and they are not filtering and have no suggested rooms
|
||||||
const showSkeleton = !this.state.isNameFiltering &&
|
const showSkeleton = !this.state.isNameFiltering && !this.state.suggestedRooms?.length &&
|
||||||
Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
|
Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
|
||||||
|
|
||||||
return TAG_ORDER.reduce((tags, tagId) => {
|
return TAG_ORDER.reduce((tags, tagId) => {
|
||||||
|
|
Loading…
Reference in New Issue