From 36be518174c4f07d8529a95e628921fca69d2121 Mon Sep 17 00:00:00 2001 From: flexsurfer Date: Thu, 30 May 2024 17:46:36 +0200 Subject: [PATCH] The community channel is opening very slowly #20231 (#20236) --- src/status_im/contexts/communities/events.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/contexts/communities/events.cljs b/src/status_im/contexts/communities/events.cljs index 83fe2b414b..ad1c6e0037 100644 --- a/src/status_im/contexts/communities/events.cljs +++ b/src/status_im/contexts/communities/events.cljs @@ -252,7 +252,9 @@ (defn fetch-community [{:keys [db]} [{:keys [community-id update-last-opened-at?]}]] - (when (and community-id (not (get-in db [:communities/fetching-communities community-id]))) + (when (and community-id + (not (get-in db [:communities community-id])) + (not (get-in db [:communities/fetching-communities community-id]))) {:db (assoc-in db [:communities/fetching-communities community-id] true) :json-rpc/call [{:method "wakuext_fetchCommunity" :params [{:CommunityKey community-id