mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
Avoid doubling up username in read receipt view
In the ReadReceiptMarker title, use the RoomMember.rawDisplayName because RoomMember.name may already include the username, which we are going to add ourselves.
This commit is contained in:
parent
97ce84c8e3
commit
0fd9b3e9b2
@ -187,7 +187,7 @@ module.exports = React.createClass({
|
|||||||
if (this.props.timestamp) {
|
if (this.props.timestamp) {
|
||||||
title = _t(
|
title = _t(
|
||||||
"Seen by %(displayName)s (%(userName)s) at %(dateTime)s",
|
"Seen by %(displayName)s (%(userName)s) at %(dateTime)s",
|
||||||
{displayName: this.props.member.name,
|
{displayName: this.props.member.rawDisplayName,
|
||||||
userName: this.props.member.userId,
|
userName: this.props.member.userId,
|
||||||
dateTime: formatDate(new Date(this.props.timestamp), this.props.showTwelveHour)},
|
dateTime: formatDate(new Date(this.props.timestamp), this.props.showTwelveHour)},
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user