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, }); });