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