Hide channel list at token-gated communities overview (#17901)

This commit hides the categorized channel list for token-gated communities overview.
This commit is contained in:
Flavio Fraschetti 2023-11-16 10:46:17 +00:00 committed by GitHub
parent 4a44161163
commit ec4046e543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -255,7 +255,7 @@
(defn community-content
[community]
(rf/dispatch [:communities/check-all-community-channels-permissions (:id community)])
(fn [{:keys [name description joined images tags color id] :as community}
(fn [{:keys [name description joined images tags color id token-permissions] :as community}
pending?
{:keys [on-category-layout
collapsed?
@ -273,12 +273,14 @@
:last-item-style style/last-community-tag
:container-style style/community-tag-container}])
[join-community community pending?]]
[channel-list-component
{:on-category-layout on-category-layout
:community-id id
:community-color color
:on-first-channel-height-changed on-first-channel-height-changed}
(add-handlers-to-categorized-chats id chats-by-category joined)]])))
(when (or (and (seq token-permissions) joined)
(empty? token-permissions))
[channel-list-component
{:on-category-layout on-category-layout
:community-id id
:community-color color
:on-first-channel-height-changed on-first-channel-height-changed}
(add-handlers-to-categorized-chats id chats-by-category joined)])])))
(defn sticky-category-header
[_]