mirror of
https://github.com/status-im/status-react.git
synced 2025-02-03 22:56:19 +00:00
Properly open/navigate-to chat
This commit is contained in:
parent
8d9675154c
commit
e3fe6d48da
@ -39,12 +39,6 @@
|
|||||||
(as-> fx
|
(as-> fx
|
||||||
(merge fx (input-events/select-chat-input-command (:db fx) send-command nil true)))))))
|
(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}]
|
(defn get-current-account [{:keys [:accounts/current-account-id] :as db}]
|
||||||
(get-in db [:accounts/accounts current-account-id]))
|
(get-in db [:accounts/accounts current-account-id]))
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
[action-button/action-button {:label (i18n/label :t/start-conversation)
|
[action-button/action-button {:label (i18n/label :t/start-conversation)
|
||||||
:icon :icons/chats
|
:icon :icons/chats
|
||||||
:icon-opts {:color :blue}
|
: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?
|
(when-not dapp?
|
||||||
[react/view
|
[react/view
|
||||||
[action-button/action-separator]
|
[action-button/action-separator]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user