fix: Community admins will review request text is visible even after joining (#19218)

This commit is contained in:
Ajay Sivan 2024-03-20 21:19:24 +05:30 committed by GitHub
parent 0fdb599d93
commit c2f0060a47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@
(i18n/label :t/join-open-community)]])))
(defn- join-community
[{:keys [id joined permissions role-permissions? can-join?] :as community}]
[{:keys [id joined permissions can-request-access?] :as community}]
(let [pending? (rf/sub [:communities/my-pending-request-to-join id])
access-type (get-access-type (:access permissions))
unknown-access? (= access-type :unknown-access)
@ -187,7 +187,7 @@
[:<>
(when-not (or joined pending? invite-only? unknown-access?)
[token-requirements community])
(when (not (or pending? role-permissions? can-join?))
(when (and can-request-access? (not joined))
[quo/text
{:size :paragraph-2
:weight :regular