From f7459056bf32f8870442032cd0f4838782d2362e Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Thu, 14 Jul 2022 19:16:42 +0530 Subject: [PATCH] Clear chat inputs after sending contact request (#13665) --- src/status_im/chat/models/input.cljs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/status_im/chat/models/input.cljs b/src/status_im/chat/models/input.cljs index 4587bffd49..2ac3e7a96d 100644 --- a/src/status_im/chat/models/input.cljs +++ b/src/status_im/chat/models/input.cljs @@ -281,13 +281,12 @@ {:events [:contacts/send-contact-request]} [{:keys [db] :as cofx} public-key message] (fx/merge cofx - {::json-rpc/call [{:method "wakuext_sendContactRequest" - :js-response true - :params [{:id public-key :message message}] - :on-error #(log/warn "failed to send a contact request" %) - - :on-success #(re-frame/dispatch [:transport/message-sent %])}]} - + {:chat.ui/clear-inputs nil + ::json-rpc/call [{:method "wakuext_sendContactRequest" + :js-response true + :params [{:id public-key :message message}] + :on-error #(log/warn "failed to send a contact request" %) + :on-success #(re-frame/dispatch [:transport/message-sent %])}]} (mentions/clear-mentions) (mentions/clear-cursor) (clean-input (:current-chat-id db))