fix white screen when navigating back from a channel (#20326)
This commit is contained in:
parent
b4a0e74a4a
commit
ab93088d93
|
@ -202,7 +202,8 @@
|
||||||
{:events [:chat/navigate-to-chat]}
|
{:events [:chat/navigate-to-chat]}
|
||||||
[{db :db :as cofx} chat-id animation]
|
[{db :db :as cofx} chat-id animation]
|
||||||
(rf/merge cofx
|
(rf/merge cofx
|
||||||
{:dispatch [(if animation :shell/navigate-to :navigate-to) :chat chat-id animation]}
|
(when-not (:current-chat-id db)
|
||||||
|
{:dispatch [(if animation :shell/navigate-to :navigate-to) :chat chat-id animation]})
|
||||||
(close-chat chat-id)
|
(close-chat chat-id)
|
||||||
(force-close-chat chat-id)
|
(force-close-chat chat-id)
|
||||||
(fn [{:keys [db]}]
|
(fn [{:keys [db]}]
|
||||||
|
|
Loading…
Reference in New Issue