Remove duplicated audio transcription appending

This commit is contained in:
Ilya Laktyushin 2024-04-15 02:19:14 +04:00
parent f41b47ee25
commit deeecf61f9

View File

@ -1158,16 +1158,6 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
}
}
for attribute in message.attributes {
if hasExpandedAudioTranscription, let attribute = attribute as? AudioTranscriptionMessageAttribute {
if !messageText.isEmpty {
messageText.append("\n")
}
messageText.append(attribute.text)
break
}
}
var isPoll = false
if messageText.isEmpty {
for media in message.media {