diff --git a/app/soapbox/features/chats/components/chat-composer.tsx b/app/soapbox/features/chats/components/chat-composer.tsx index 2cda01254d..0b885c0c7f 100644 --- a/app/soapbox/features/chats/components/chat-composer.tsx +++ b/app/soapbox/features/chats/components/chat-composer.tsx @@ -80,7 +80,7 @@ const ChatComposer = React.forwardRef const hasAttachment = attachments.length > 0; const isOverCharacterLimit = maxCharacterCount && value?.length > maxCharacterCount; - const isSubmitDisabled = disabled || isOverCharacterLimit || (value.length === 0 && !hasAttachment); + const isSubmitDisabled = disabled || isUploading || isOverCharacterLimit || (value.length === 0 && !hasAttachment); const overLimitText = maxCharacterCount ? maxCharacterCount - value?.length : ''; @@ -173,7 +173,7 @@ const ChatComposer = React.forwardRef resetFileKey={resetFileKey} iconClassName='w-5 h-5' className='text-primary-500' - disabled={attachments.length >= attachmentLimit} + disabled={isUploading || (attachments.length >= attachmentLimit)} /> )}