Use display name when pinned messages are changed

Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/21833/head
Aaron Raimist 2020-01-05 23:04:42 -06:00
parent 92fb6fcdc2
commit 98ede6437e
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ function textForPowerEvent(event) {
}
function textForPinnedEvent(event) {
const senderName = event.getSender();
const senderName = event.sender ? event.sender.name : event.getSender();
return _t("%(senderName)s changed the pinned messages for the room.", {senderName});
}