From 52da4643c1839ba8af88b501825dd646095702ff Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:51:22 +0100 Subject: [PATCH] Message: Skip empty translations (#6731) --- src/global/reducers/translations.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/global/reducers/translations.ts b/src/global/reducers/translations.ts index 82b374dca..d073f7fdf 100644 --- a/src/global/reducers/translations.ts +++ b/src/global/reducers/translations.ts @@ -71,8 +71,9 @@ export function updateMessageTranslations( global: T, chatId: string, messageIds: number[], toLanguageCode: string, translations: ApiFormattedText[], ) { messageIds.forEach((messageId, index) => { + const text = translations[index]; global = updateMessageTranslation(global, chatId, messageId, toLanguageCode, { - text: translations[index], + text: text.text.length ? text : undefined, isPending: false, }); });