Wrong bottom sheet for channel in communities without permissions #20031 (#20212)

This commit is contained in:
flexsurfer 2024-05-30 14:20:57 +02:00 committed by GitHub
parent 2e61b56214
commit aa1a306294
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,8 @@
contact-id])
{:keys [contact-request-state community-id]} (rf/sub [:chats/current-chat-chat-view])
chat-type (rf/sub [:chats/chat-type])
joined (rf/sub [:communities/community-joined
community-id])
contact-request-send? (or (not contact-request-state)
(= contact-request-state
constants/contact-request-state-none))
@ -37,7 +39,9 @@
:else :i/add-user)
:action-label (cond
(= chat-type :community-chat)
(i18n/label :t/join-community-to-post)
(if joined
(i18n/label :t/no-permissions-to-post)
(i18n/label :t/join-community-to-post))
(= chat-type :group-chat)
(i18n/label :t/group-chat-not-member)

View File

@ -777,6 +777,7 @@
"joined-community": "You joined “{{community}}”",
"join-decentralised-communities": "Join Decentralized Communities",
"join-community-to-post": "Join community to post",
"no-permissions-to-post": "Sorry, you don't have permissions to post in this channel",
"http-gateway-error": "Oops, request failed!",
"sign-request-failed": "Could not sign message",
"simple": "Simple",