1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Use display name when pinned messages are changed

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist
2020-01-05 23:04:42 -06:00
parent 92fb6fcdc2
commit 98ede6437e

View File

@@ -473,7 +473,7 @@ function textForPowerEvent(event) {
} }
function textForPinnedEvent(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}); return _t("%(senderName)s changed the pinned messages for the room.", {senderName});
} }