mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 14:51:30 +03:00
Update src/TextForEvent.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
parent
fc81001316
commit
f0d0b77b8c
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue