This commit is contained in:
parent
2e61b56214
commit
aa1a306294
|
@ -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)
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue