Chat: Fix commas in users' names with emojis (#3451)

This commit is contained in:
Alexander Zinchuk 2023-07-05 13:14:54 +02:00
parent 23eef3034d
commit 652d68fd35

View File

@ -91,6 +91,7 @@ export function renderActionMessageText(
) : actionOriginChat ? ( ) : actionOriginChat ? (
renderChatContent(lang, actionOriginChat, noLinks) || NBSP renderChatContent(lang, actionOriginChat, noLinks) || NBSP
) : 'User', ) : 'User',
'',
); );
unprocessed = processed.pop() as string; unprocessed = processed.pop() as string;
@ -157,6 +158,7 @@ export function renderActionMessageText(
targetUsers targetUsers
? targetUsers.map((user) => renderUserContent(user, noLinks)).filter(Boolean) ? targetUsers.map((user) => renderUserContent(user, noLinks)).filter(Boolean)
: 'User', : 'User',
'',
); );
unprocessed = processed.pop() as string; unprocessed = processed.pop() as string;
@ -190,6 +192,7 @@ export function renderActionMessageText(
targetChatId targetChatId
? renderMigratedContent(targetChatId, noLinks) ? renderMigratedContent(targetChatId, noLinks)
: 'another chat', : 'another chat',
'',
); );
processed.forEach((part) => { processed.forEach((part) => {
content.push(...renderText(part)); content.push(...renderText(part));