mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 18:32:34 +01:00
fix upload button showing when it shouldnt
This commit is contained in:
parent
0546454432
commit
cd7be43e2f
@ -145,7 +145,7 @@ function MessageInput({ channel }: Props) {
|
||||
|
||||
<InnerInnerWrapper>
|
||||
<UploadWrapper>
|
||||
{channel.hasPermission("ATTACH_FILES") && (
|
||||
{channel.hasPermission("ATTACH_FILES") && channel.hasPermission("SEND_MESSAGES") && (
|
||||
<FileUpload
|
||||
append={(files) => {
|
||||
if (files.length === 0) return;
|
||||
|
Loading…
Reference in New Issue
Block a user