fix white screen when navigating back from a channel (#20326)

This commit is contained in:
John Ngei 2024-06-05 14:24:59 +02:00 committed by GitHub
parent b4a0e74a4a
commit ab93088d93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

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