Translation fixes

This commit is contained in:
Ilya Laktyushin
2023-01-23 00:25:09 +04:00
parent bb536aec28
commit 443d0293f6
8 changed files with 33 additions and 13 deletions

View File

@@ -261,7 +261,7 @@ class ChatMessageTextBubbleContentNode: ChatMessageBubbleContentNode {
messageEntities = updatingMedia.entities?.entities ?? []
}
if let translateToLanguage = item.associatedData.translateToLanguage {
if let translateToLanguage = item.associatedData.translateToLanguage, !item.message.text.isEmpty {
isTranslating = true
for attribute in item.message.attributes {
if let attribute = attribute as? TranslationMessageAttribute, !attribute.text.isEmpty, attribute.toLang == translateToLanguage {