From 3b859204245ec6ec99ed8cd9f2d8ada2a0170308 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 20 Apr 2018 14:28:20 +0100 Subject: [PATCH] Use mxid as sender name on set display name As it was, " set their display name to " which is unhelpful because you never knew them as "" before. They would previously have been displayed with their matrix ID, so that's what should be here. --- src/TextForEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index e60bde4094..712150af4d 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -58,7 +58,7 @@ function textForMemberEvent(ev) { }); } else if (!prevContent.displayname && content.displayname) { return _t('%(senderName)s set their display name to %(displayName)s.', { - senderName, + senderName: ev.getSender(), displayName: content.displayname, }); } else if (prevContent.displayname && !content.displayname) {