enh: channel read/write perm

This commit is contained in:
Timothy Jaeryang Baek committed 2025-09-24 10:09:59 -05:00
1 parent 6d69ea3ac7
commit ac879513e5
8 files changed
+58 -14

No files matched your search

+4
View File
@@ -201,6 +201,10 @@
<div class=" pb-[1rem] px-2.5 w-full">
<MessageInput
id={threadId}
disabled={!channel?.write_access}
placeholder={!channel?.write_access
? $i18n.t('You do not have permission to send messages in this thread.')
: $i18n.t('Reply to thread...')}
typingUsersClassName="from-gray-50 dark:from-gray-850"
{typingUsers}
userSuggestions={true}