mirror of https://github.com/vector-im/riot-web
Merge pull request #3809 from aaronraimist/pinned-msg-display-name
Use display name when pinned messages are changedpull/21833/head
commit
4ab7b9ba92
|
@ -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});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue