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

Use display name when pinned messages are changed
This commit is contained in:
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

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});
}