This commit is contained in:
Roman Volosovskyi 2016-12-13 17:17:47 +02:00
parent 28147a3730
commit 7c36421d57
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@
(register-handler :cancel-command (register-handler :cancel-command
(fn [{:keys [current-chat-id] :as db} _] (fn [{:keys [current-chat-id] :as db} _]
(-> db (-> db
(dissoc :canceled-command)
(assoc-in [:chats current-chat-id :command-input] {}) (assoc-in [:chats current-chat-id :command-input] {})
(update-in [:chats current-chat-id :input-text] safe-trim)))) (update-in [:chats current-chat-id :input-text] safe-trim))))