From cd2e2a492836c9e8a2ba185f19e4fea3d460bd4b Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 20 Sep 2022 14:59:09 +0200 Subject: [PATCH] Action Message: Fix rendering emojis (#2040) --- src/components/common/helpers/renderActionMessageText.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/common/helpers/renderActionMessageText.tsx b/src/components/common/helpers/renderActionMessageText.tsx index 07f82bce..0c40d8ea 100644 --- a/src/components/common/helpers/renderActionMessageText.tsx +++ b/src/components/common/helpers/renderActionMessageText.tsx @@ -147,7 +147,9 @@ export function renderActionMessageText( ? renderMigratedContent(targetChatId, noLinks) : 'another chat', ); - content.push(...processed); + processed.forEach((part) => { + content.push(...renderText(part)); + }); if (options.asPlainText) { return content.join('').trim();