mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 02:11:31 +02:00
Remove disambiguation from user mentions, add tooltip for mxid
Also add a tooltip for room pills = room alias/ID Requires: https://github.com/matrix-org/matrix-js-sdk/pull/513
This commit is contained in:
parent
eb0575d9c1
commit
727b1ca545
@ -78,7 +78,7 @@ export default React.createClass({
|
||||
new RoomMember(null, resource);
|
||||
if (member) {
|
||||
userId = member.userId;
|
||||
linkText = member.name;
|
||||
linkText = member.rawDisplayName;
|
||||
avatar = <MemberAvatar member={member} width={16} height={16}/>;
|
||||
}
|
||||
} else if (isRoomPill) {
|
||||
@ -101,11 +101,11 @@ export default React.createClass({
|
||||
|
||||
if ((isUserPill || isRoomPill) && avatar) {
|
||||
return this.props.inMessage ?
|
||||
<a className={classes} href={this.props.url}>
|
||||
<a className={classes} href={this.props.url} title={resource}>
|
||||
{avatar}
|
||||
{linkText}
|
||||
</a> :
|
||||
<span className={classes}>
|
||||
<span className={classes} title={resource}>
|
||||
{avatar}
|
||||
{linkText}
|
||||
</span>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user