From 72d06426d847ac52d54a01cb141c786d2419c842 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 2 May 2017 16:25:00 +0300 Subject: [PATCH] fix #1135 --- src/status_im/chat/handlers/send_message.cljs | 7 +++---- src/status_im/commands/handlers/jail.cljs | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/status_im/chat/handlers/send_message.cljs b/src/status_im/chat/handlers/send_message.cljs index 9ce35ed2c4..9ec140e753 100644 --- a/src/status_im/chat/handlers/send_message.cljs +++ b/src/status_im/chat/handlers/send_message.cljs @@ -209,10 +209,9 @@ (when update-db (dispatch [:update-bot-db {:bot chat-id :db update-db}])) - (when markup - (dispatch [:suggestions-handler (assoc params - :result data - :default-db default-db)])) + (dispatch [:suggestions-handler (assoc params + :result data + :default-db default-db)]) (doseq [message log-messages] (let [{:keys [message type]} message] (when (or (not= type "debug") js/goog.DEBUG) diff --git a/src/status_im/commands/handlers/jail.cljs b/src/status_im/commands/handlers/jail.cljs index c408e4f321..5f4071d9ca 100644 --- a/src/status_im/commands/handlers/jail.cljs +++ b/src/status_im/commands/handlers/jail.cljs @@ -40,10 +40,10 @@ (let [{:keys [markup]} (get-in result [:result :returned]) {:keys [dapp? dapp-url]} (get contacts chat-id) path (if command - [:chats chat-id :parameter-boxes (:name command) parameter-index :hiccup] - [:chats chat-id :parameter-boxes :message :hiccup])] + [:chats chat-id :parameter-boxes (:name command) parameter-index] + [:chats chat-id :parameter-boxes :message])] (when-not (= (get-in db path) markup) - (dispatch [:set-in path markup]) + (dispatch [:set-in path (when markup {:hiccup markup})]) (when default-db (dispatch [:update-bot-db {:bot chat-id :db default-db}])))))