Update src/TextForEvent.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>pull/21833/head
parent
fc81001316
commit
f0d0b77b8c
|
@ -137,7 +137,7 @@ function textForTopicEvent(ev): () => string | null {
|
||||||
|
|
||||||
function textForRoomAvatarEvent(ev: MatrixEvent): () => string | null {
|
function textForRoomAvatarEvent(ev: MatrixEvent): () => string | null {
|
||||||
const senderDisplayName = ev.sender && ev.sender.name ? ev.sender.name : ev.getSender();
|
const senderDisplayName = ev.sender && ev.sender.name ? ev.sender.name : ev.getSender();
|
||||||
return () => _t('%(senderDisplayName)s changed the room avatar.', {senderDisplayName});
|
return () => _t('%(senderDisplayName)s changed the room avatar.', { senderDisplayName });
|
||||||
}
|
}
|
||||||
|
|
||||||
function textForRoomNameEvent(ev): () => string | null {
|
function textForRoomNameEvent(ev): () => string | null {
|
||||||
|
|
Loading…
Reference in New Issue