Business fixes

This commit is contained in:
Isaac
2024-03-05 15:32:59 +04:00
parent ae998eb91e
commit 7966993955
26 changed files with 503 additions and 105 deletions

View File

@@ -66,7 +66,11 @@ private struct CommandChatInputContextPanelEntry: Comparable, Identifiable {
case let .command(command):
return .command(command)
case let .shortcut(shortcut):
return .shortcut(shortcut.id)
if let shortcutId = shortcut.id {
return .shortcut(shortcutId)
} else {
return .shortcut(0)
}
}
}
}
@@ -375,7 +379,9 @@ final class CommandChatInputContextPanelNode: ChatInputContextPanelNode {
}
}
case let .shortcut(shortcut):
interfaceInteraction.sendShortcut(shortcut.id)
if let shortcutId = shortcut.id {
interfaceInteraction.sendShortcut(shortcutId)
}
}
}, openEditShortcuts: { [weak self] in
guard let self, let interfaceInteraction = self.interfaceInteraction else {