Merge pull request #3809 from aaronraimist/pinned-msg-display-name

Use display name when pinned messages are changed
pull/21833/head
Travis Ralston 2020-01-05 22:18:21 -07:00 committed by GitHub
commit 4ab7b9ba92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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});
}