diff --git a/src/components/views/elements/Flair.js b/src/components/views/elements/Flair.js index 69d9aa35b7..82a96ff11f 100644 --- a/src/components/views/elements/Flair.js +++ b/src/components/views/elements/Flair.js @@ -43,18 +43,22 @@ class FlairAvatar extends React.Component { render() { const httpUrl = this.context.matrixClient.mxcUrlToHttp( this.props.groupProfile.avatarUrl, 16, 16, 'scale', false); + const tooltip = this.props.groupProfile.name ? + `${this.props.groupProfile.name} (${this.props.groupProfile.groupId})`: + this.props.groupProfile.groupId; return ; + title={tooltip} />; } } FlairAvatar.propTypes = { groupProfile: PropTypes.shape({ groupId: PropTypes.string.isRequired, + name: PropTypes.string.isRequired, avatarUrl: PropTypes.string.isRequired, }), };