fix user lands on the Home screen after closing a community opened from Discover Communities

This commit is contained in:
Parvesh Monu 2024-07-10 17:10:44 +05:30
parent 6c352397ab
commit 7ff7e78691
No known key found for this signature in database
GPG Key ID: F399696520817DE9
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@
(when (get-in db [:communities community-id :joined]) (when (get-in db [:communities community-id :joined])
[:dispatch [:dispatch
[:activity-center.notifications/dismiss-community-overview community-id]])]} [:activity-center.notifications/dismiss-community-overview community-id]])]}
(when-not (or (= current-view-id :shell) (= current-view-id :communities-stack)) (when-not (#{:shell :communities-stack :discover-communities} current-view-id)
(navigation/pop-to-root :shell-stack)))))) (navigation/pop-to-root :shell-stack))))))
(rf/reg-event-fx :communities/navigate-to-community-overview navigate-to-community-overview) (rf/reg-event-fx :communities/navigate-to-community-overview navigate-to-community-overview)