Chat: Fix rendering emoji in action message sender name (#2160)
This commit is contained in:
parent
cb87c1dea8
commit
2d77f5ecf1
@ -218,7 +218,7 @@ function renderUserContent(sender: ApiUser, noLinks?: boolean): string | TextPar
|
||||
const text = trimText(getUserFullName(sender), MAX_LENGTH);
|
||||
|
||||
if (noLinks) {
|
||||
return text;
|
||||
return renderText(text!);
|
||||
}
|
||||
|
||||
return <UserLink className="action-link" sender={sender}>{sender && renderText(text!)}</UserLink>;
|
||||
@ -228,7 +228,7 @@ function renderChatContent(lang: LangFn, chat: ApiChat, noLinks?: boolean): stri
|
||||
const text = trimText(getChatTitle(lang, chat), MAX_LENGTH);
|
||||
|
||||
if (noLinks) {
|
||||
return text;
|
||||
return renderText(text!);
|
||||
}
|
||||
|
||||
return <ChatLink className="action-link" chatId={chat.id}>{chat && renderText(text!)}</ChatLink>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user