Skip to content

Commit da55081

Browse files
committed
Add member name to avatars as the title since if displayed without accompanying text (as with read receipts) they can be somewhat unhelpful. May as well have them all the time I think.
1 parent 80c2bd0 commit da55081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/skins/vector/views/atoms/MemberAvatar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = React.createClass({
5454
style={{ fontSize: (this.props.width * 0.75) + "px",
5555
width: this.props.width + "px",
5656
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>
57-
<img className="mx_MemberAvatar_image" src={this.state.imageUrl}
57+
<img className="mx_MemberAvatar_image" src={this.state.imageUrl} title={this.props.member.name}
5858
onError={this.onError} width={this.props.width} height={this.props.height} />
5959
</span>
6060
);
@@ -63,6 +63,7 @@ module.exports = React.createClass({
6363
<img className="mx_MemberAvatar mx_MemberAvatar_image" src={this.state.imageUrl}
6464
onError={this.onError}
6565
width={this.props.width} height={this.props.height}
66+
title={this.props.member.name}
6667
{...this.props}
6768
/>
6869
);

0 commit comments

Comments
 (0)