Use mxid as sender name on set display name
As it was, "<New name> set their display name to <New name>" which is unhelpful because you never knew them as "<New name>" before. They would previously have been displayed with their matrix ID, so that's what should be here.
This commit is contained in:
parent
1aadaa3cc5
commit
3b85920424
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ function textForMemberEvent(ev) {
|
||||||
});
|
});
|
||||||
} else if (!prevContent.displayname && content.displayname) {
|
} else if (!prevContent.displayname && content.displayname) {
|
||||||
return _t('%(senderName)s set their display name to %(displayName)s.', {
|
return _t('%(senderName)s set their display name to %(displayName)s.', {
|
||||||
senderName,
|
senderName: ev.getSender(),
|
||||||
displayName: content.displayname,
|
displayName: content.displayname,
|
||||||
});
|
});
|
||||||
} else if (prevContent.displayname && !content.displayname) {
|
} else if (prevContent.displayname && !content.displayname) {
|
||||||
|
|
Loading…
Reference in a new issue