From cd7be43e2f2ce98f56599aeb203739aa31d64b39 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 9 Sep 2023 21:19:44 -0400 Subject: [PATCH] fix upload button showing when it shouldnt --- src/components/messaging/MessageInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/messaging/MessageInput.tsx b/src/components/messaging/MessageInput.tsx index 3c0aa49..b470ecd 100644 --- a/src/components/messaging/MessageInput.tsx +++ b/src/components/messaging/MessageInput.tsx @@ -145,7 +145,7 @@ function MessageInput({ channel }: Props) { - {channel.hasPermission("ATTACH_FILES") && ( + {channel.hasPermission("ATTACH_FILES") && channel.hasPermission("SEND_MESSAGES") && ( { if (files.length === 0) return;