From 64863c87ac6e9e2b8afcdab5db3cdfc4d3895593 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Sat, 5 Nov 2016 15:00:10 +0200 Subject: [PATCH] fix command sending --- src/status_im/chat/handlers/console.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/chat/handlers/console.cljs b/src/status_im/chat/handlers/console.cljs index 835bfa0ac4..8bdccf0157 100644 --- a/src/status_im/chat/handlers/console.cljs +++ b/src/status_im/chat/handlers/console.cljs @@ -24,10 +24,10 @@ (register-handler :invoke-console-command-handler! (u/side-effect! - (fn [_ [_ {:keys [staged-command] :as parameters}]] + (fn [_ [_ {:keys [chat-id staged-command] :as parameters}]] (let [{:keys [id command params]} staged-command {:keys [name]} command] - (dispatch [:prepare-command! parameters]) + (dispatch [:prepare-command! chat-id parameters]) ((console-commands (keyword name)) params id))))) (register-handler :set-message-status