Only show flair for groups with avatars set

Fix vector-im/riot-web#5377
This commit is contained in:
Luke Barnard 2017-10-23 17:06:47 +01:00
parent e023aa9a10
commit 2f418976aa

View file

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