mirror of
https://github.com/status-im/status-react.git
synced 2025-02-03 14:46:05 +00:00
Properly open/navigate-to chat
This commit is contained in:
parent
8d9675154c
commit
e3fe6d48da
@ -39,12 +39,6 @@
|
||||
(as-> fx
|
||||
(merge fx (input-events/select-chat-input-command (:db fx) send-command nil true)))))))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:profile/send-message
|
||||
(fn [_ [_ identity]]
|
||||
(when identity
|
||||
{:dispatch [:navigation-replace :chat identity]})))
|
||||
|
||||
(defn get-current-account [{:keys [:accounts/current-account-id] :as db}]
|
||||
(get-in db [:accounts/accounts current-account-id]))
|
||||
|
||||
|
@ -116,7 +116,7 @@
|
||||
[action-button/action-button {:label (i18n/label :t/start-conversation)
|
||||
:icon :icons/chats
|
||||
:icon-opts {:color :blue}
|
||||
:on-press #(re-frame/dispatch [:profile/send-message whisper-identity])}]
|
||||
:on-press #(re-frame/dispatch [:start-chat whisper-identity {:navigation-replace? true}])}]
|
||||
(when-not dapp?
|
||||
[react/view
|
||||
[action-button/action-separator]
|
||||
|
Loading…
x
Reference in New Issue
Block a user