Hide Skeleton UI if you have Suggested Rooms

pull/21833/head
Michael Telatynski 2021-10-11 10:50:49 +01:00
parent e54d803343
commit 11480e8641
1 changed files with 2 additions and 2 deletions

View File

@ -449,8 +449,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
}
private renderSublists(): React.ReactElement[] {
// show a skeleton UI if the user is in no rooms and they are not filtering
const showSkeleton = !this.state.isNameFiltering &&
// 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 && !this.state.suggestedRooms?.length &&
Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
return TAG_ORDER.reduce((tags, tagId) => {