stop avatar mxids being copy-pastable (unless they contain an initial). should significantly improve https://github.com/vector-im/vector-web/issues/893

This commit is contained in:
Matthew Hodgson 2016-03-15 00:20:56 +00:00
parent 0598092f9d
commit 005ebbd037
2 changed files with 7 additions and 5 deletions

View file

@ -126,7 +126,7 @@ module.exports = React.createClass({
{ initialLetter }
</span>
<img className="mx_BaseAvatar_image" src={imageUrl}
title={this.props.title} onError={this.onError}
alt="" title={this.props.title} onError={this.onError}
width={this.props.width} height={this.props.height} />
</span>
);
@ -135,7 +135,7 @@ module.exports = React.createClass({
<img className="mx_BaseAvatar mx_BaseAvatar_image" src={imageUrl}
onError={this.onError}
width={this.props.width} height={this.props.height}
title={this.props.title}
title={this.props.title} alt=""
{...this.props} />
);
}