mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
92a6a73f6f
commit
1fb93ab298
29 changed files with 695 additions and 227 deletions
|
|
@ -1019,6 +1019,11 @@ public final class ChatPresentationInterfaceState: Equatable {
|
|||
public func updatedInputQueryResult(queryKind: ChatPresentationInputQueryKind, _ f: (ChatPresentationInputQueryResult?) -> ChatPresentationInputQueryResult?) -> ChatPresentationInterfaceState {
|
||||
var inputQueryResults = self.inputQueryResults
|
||||
let updated = f(inputQueryResults[queryKind])
|
||||
if case .contextRequest = queryKind {
|
||||
#if DEBUG
|
||||
print("updatedInputQueryResult: \(String(describing: updated))")
|
||||
#endif
|
||||
}
|
||||
if let updated = updated {
|
||||
inputQueryResults[queryKind] = updated
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue