Fix build

This commit is contained in:
Isaac 2024-05-02 21:59:43 +04:00
parent 07d8537d75
commit 0b7a6dab8e

View File

@ -171,7 +171,7 @@ func _internal_translateMessages(account: Account, messageIds: [EngineMessage.Id
let storeForwardInfo = currentMessage.forwardInfo.flatMap(StoreMessageForwardInfo.init)
var attributes = currentMessage.attributes.filter { !($0 is TranslationMessageAttribute) }
var attrOptions: [TranslationMessageAttribute.Additional] = []
for (i, option) in poll.0.options.enumerated() {
for (i, _) in poll.0.options.enumerated() {
let translated = result[i + 1]
attrOptions.append(.init(text: translated.0, entities: translated.1))
}