[#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:
andrey 2021-07-23 10:58:45 +02:00
parent c43dd2ec20
commit 88715131dd
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 6 additions and 7 deletions

View File

@ -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]}