From 9665ea466d421ac5d05798c724c0e637c99cf295 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 28 Jun 2017 10:08:09 +0300 Subject: [PATCH] review comments --- src/status_im/chat/handlers/input.cljs | 7 +++---- src/status_im/chat/handlers/send_message.cljs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/status_im/chat/handlers/input.cljs b/src/status_im/chat/handlers/input.cljs index b0023e4251..2c4317b6f7 100644 --- a/src/status_im/chat/handlers/input.cljs +++ b/src/status_im/chat/handlers/input.cljs @@ -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 diff --git a/src/status_im/chat/handlers/send_message.cljs b/src/status_im/chat/handlers/send_message.cljs index f111357846..eb32dbc98b 100644 --- a/src/status_im/chat/handlers/send_message.cljs +++ b/src/status_im/chat/handlers/send_message.cljs @@ -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])