mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
Clear chat inputs after sending contact request (#13665)
This commit is contained in:
parent
22f92677fa
commit
f7459056bf
@ -281,13 +281,12 @@
|
|||||||
{:events [:contacts/send-contact-request]}
|
{:events [:contacts/send-contact-request]}
|
||||||
[{:keys [db] :as cofx} public-key message]
|
[{:keys [db] :as cofx} public-key message]
|
||||||
(fx/merge cofx
|
(fx/merge cofx
|
||||||
{::json-rpc/call [{:method "wakuext_sendContactRequest"
|
{:chat.ui/clear-inputs nil
|
||||||
:js-response true
|
::json-rpc/call [{:method "wakuext_sendContactRequest"
|
||||||
:params [{:id public-key :message message}]
|
:js-response true
|
||||||
:on-error #(log/warn "failed to send a contact request" %)
|
:params [{:id public-key :message message}]
|
||||||
|
:on-error #(log/warn "failed to send a contact request" %)
|
||||||
:on-success #(re-frame/dispatch [:transport/message-sent %])}]}
|
:on-success #(re-frame/dispatch [:transport/message-sent %])}]}
|
||||||
|
|
||||||
(mentions/clear-mentions)
|
(mentions/clear-mentions)
|
||||||
(mentions/clear-cursor)
|
(mentions/clear-cursor)
|
||||||
(clean-input (:current-chat-id db))
|
(clean-input (:current-chat-id db))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user