Update src/TextForEvent.tsx

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
Jaiwanth 2021-06-29 10:13:14 +05:30 committed by GitHub
parent fc81001316
commit f0d0b77b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {