mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactoring
This commit is contained in:
@@ -233,7 +233,7 @@ private func updatedContextQueryResultStateForQuery(context: AccountContext, pee
|
||||
signal = .single({ _ in return .commands([]) })
|
||||
}
|
||||
|
||||
let commands = peerCommands(account: context.account, id: peer.id)
|
||||
let commands = context.engine.peers.peerCommands(id: peer.id)
|
||||
|> map { commands -> (ChatPresentationInputQueryResult?) -> ChatPresentationInputQueryResult? in
|
||||
let filteredCommands = commands.commands.filter { command in
|
||||
if command.command.text.hasPrefix(normalizedQuery) {
|
||||
|
||||
Reference in New Issue
Block a user