From 0822e5a9bd72d8c0d58b1d5b0cbf8e52827d60c2 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 23 Oct 2017 16:03:28 +0300 Subject: [PATCH] fixed send from profile --- src/status_im/ui/screens/profile/events.cljs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/status_im/ui/screens/profile/events.cljs b/src/status_im/ui/screens/profile/events.cljs index baef749b3c..01f2a2f487 100644 --- a/src/status_im/ui/screens/profile/events.cljs +++ b/src/status_im/ui/screens/profile/events.cljs @@ -29,12 +29,10 @@ (handlers/register-handler-fx :profile/send-transaction [trim-v] - (fn [{:keys [db]} [chat-id contact-id]] - {:dispatch-n [[:navigate-to :chat chat-id] - [:select-chat-input-command {:name "send"}] - [:set-contact-as-command-argument {:arg-index 0 - :bot-db-key "recipient" - :contact (get-in db [:contacts/contacts contact-id])}]]})) + (fn [_ [chat-id]] + {:dispatch [:navigate-to :chat chat-id] + ;;TODO get rid of timeout + :dispatch-later [{:ms 100 :dispatch [:select-chat-input-command {:name "send"}]}]})) (handlers/register-handler-fx :profile/send-message