1
0
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:
Puyodead1 2023-09-09 21:19:44 -04:00
parent 0546454432
commit cd7be43e2f
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -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;