Various improvements

This commit is contained in:
Ilya Laktyushin
2025-06-29 11:57:12 +02:00
parent a05b846703
commit c2a10931b6
4 changed files with 23 additions and 9 deletions

View File

@@ -978,6 +978,10 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
} else if let incompletedTaskId = incompleted.first {
todoTaskId = incompletedTaskId
}
} else if case let .todoAppendTasks(tasks) = action.action {
if let task = tasks.first {
todoTaskId = task.id
}
}
self.navigateToMessage(from: message.id, to: .id(attribute.messageId, NavigateToMessageParams(timestamp: nil, quote: attribute.isQuote ? attribute.quote.flatMap { quote in NavigateToMessageParams.Quote(string: quote.text, offset: quote.offset) } : nil, todoTaskId: todoTaskId)))
break