review comments

This commit is contained in:
Roman Volosovskyi 2017-06-28 10:08:09 +03:00
parent 4f6ebb53d3
commit 9665ea466d
2 changed files with 4 additions and 5 deletions

View File

@ -129,12 +129,11 @@
args (-> (get-in db [:chats current-chat-id :input-text])
(input-model/split-command-args)
(rest))
to (get-in db [:contacts current-chat-id :address])
from (get-in db [])
to (get-in db [:contacts current-chat-id :address])
params {:parameters {:args args}
:context (merge {:data data
:from current-account-id
:to to}
:from current-account-id
:to to}
(input-model/command-dependent-context-params command))}]
(status/call-jail
{:jail-id jail-id

View File

@ -80,7 +80,7 @@
command' (->> (assoc command-message :handler-data handler-data)
(prepare-command current-public-key chat-id clock-value request)
(cu/check-author-direction db chat-id))]
(log/debug "Handler data: " request (:handler-data command) (dissoc params :commands :command-message))
(log/debug "Handler data: " request handler-data (dissoc params :commands :command-message))
(dispatch [:update-message-overhead! chat-id network-status])
(dispatch [:set-chat-ui-props {:sending-in-progress? false}])
(dispatch [::send-command! add-to-chat-id (assoc params :command command') hidden-params])