This commit is contained in:
Isaac
2024-03-01 00:09:39 +04:00
parent c69ba2c089
commit 42b14666a2
28 changed files with 414 additions and 329 deletions

View File

@@ -243,8 +243,7 @@ private func updatedContextQueryResultStateForQuery(context: AccountContext, pee
return false
}
var sortedCommands = filteredCommands.map(ChatInputTextCommand.command)
if !shortcuts.isEmpty {
sortedCommands.removeAll()
if !shortcuts.isEmpty && sortedCommands.isEmpty {
for shortcut in shortcuts {
sortedCommands.append(.shortcut(shortcut))
}