fixed send from profile
This commit is contained in:
parent
38db60eabe
commit
0822e5a9bd
|
@ -29,12 +29,10 @@
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:profile/send-transaction
|
:profile/send-transaction
|
||||||
[trim-v]
|
[trim-v]
|
||||||
(fn [{:keys [db]} [chat-id contact-id]]
|
(fn [_ [chat-id]]
|
||||||
{:dispatch-n [[:navigate-to :chat chat-id]
|
{:dispatch [:navigate-to :chat chat-id]
|
||||||
[:select-chat-input-command {:name "send"}]
|
;;TODO get rid of timeout
|
||||||
[:set-contact-as-command-argument {:arg-index 0
|
:dispatch-later [{:ms 100 :dispatch [:select-chat-input-command {:name "send"}]}]}))
|
||||||
:bot-db-key "recipient"
|
|
||||||
:contact (get-in db [:contacts/contacts contact-id])}]]}))
|
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:profile/send-message
|
:profile/send-message
|
||||||
|
|
Loading…
Reference in New Issue