Merge pull request #1519 from matrix-org/luke/groups-flair-avatars-set

Only show flair for groups with avatars set
pull/21833/head
Luke Barnard 2017-10-23 17:12:18 +01:00 committed by GitHub
commit 65ce71e6af
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ export default class Flair extends React.Component {
}
const profiles = await this._getGroupProfiles(groups);
if (!this.unmounted) {
this.setState({profiles});
this.setState({profiles: profiles.filter((profile) => {return profile.avatarUrl;})});
}
}