[#12329] No redirect to 1-1 chat when starting chat via "Chat" button in profile
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
c43dd2ec20
commit
88715131dd
|
@ -12,13 +12,12 @@
|
||||||
|
|
||||||
(fx/defn navigate-to-cofx
|
(fx/defn navigate-to-cofx
|
||||||
[{:keys [db]} go-to-view-id screen-params]
|
[{:keys [db]} go-to-view-id screen-params]
|
||||||
(when (not= go-to-view-id (:view-id db))
|
|
||||||
{:db
|
{:db
|
||||||
(-> (assoc db :view-id go-to-view-id)
|
(-> (assoc db :view-id go-to-view-id)
|
||||||
(all-screens-params go-to-view-id screen-params))
|
(all-screens-params go-to-view-id screen-params))
|
||||||
:navigate-to-fx go-to-view-id
|
:navigate-to-fx go-to-view-id
|
||||||
;; simulate a navigate-to event so it can be captured be anon-metrics
|
;; simulate a navigate-to event so it can be captured be anon-metrics
|
||||||
::anon-metrics/transform-and-log {:coeffects {:event [:navigate-to go-to-view-id screen-params]}}}))
|
::anon-metrics/transform-and-log {:coeffects {:event [:navigate-to go-to-view-id screen-params]}}})
|
||||||
|
|
||||||
(fx/defn navigate-to
|
(fx/defn navigate-to
|
||||||
{:events [:navigate-to]}
|
{:events [:navigate-to]}
|
||||||
|
|
Loading…
Reference in New Issue