Fix display name change message

(i18n file fixes coming separately for ease of review)

Fixes https://github.com/vector-im/riot-web/issues/5171
pull/21833/head
David Baker 2018-02-06 10:24:38 +00:00
parent d0972cdb1d
commit 8458023bbc
1 changed files with 1 additions and 2 deletions

View File

@ -52,8 +52,7 @@ function textForMemberEvent(ev) {
case 'join':
if (prevContent && prevContent.membership === 'join') {
if (prevContent.displayname && content.displayname && prevContent.displayname !== content.displayname) {
return _t('%(senderName)s changed their display name from %(oldDisplayName)s to %(displayName)s.', {
senderName,
return _t('%(oldDisplayName)s changed their display name to %(displayName)s.', {
oldDisplayName: prevContent.displayname,
displayName: content.displayname,
});