Composer: Fix uploading multiple files (#4643)
This commit is contained in:
parent
8a7d6f8c07
commit
e485f5a609
@ -468,12 +468,12 @@ const AttachmentModal: FC<OwnProps & StateProps> = ({
|
||||
<>
|
||||
{
|
||||
!shouldForceAsFile && !shouldForceCompression && (isSendingCompressed ? (
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
<MenuItem icon="document" onClick={() => setShouldSendCompressed(false)}>
|
||||
{lang(isMultiple ? 'Attachment.SendAsFiles' : 'Attachment.SendAsFile')}
|
||||
</MenuItem>
|
||||
) : (
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
<MenuItem icon="photo" onClick={() => setShouldSendCompressed(true)}>
|
||||
{isMultiple ? 'Send All as Media' : 'Send as Media'}
|
||||
</MenuItem>
|
||||
@ -502,7 +502,7 @@ const AttachmentModal: FC<OwnProps & StateProps> = ({
|
||||
Ungroup All Media
|
||||
</MenuItem>
|
||||
) : (
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
<MenuItem icon="grouped" onClick={() => setShouldSendGrouped(true)}>
|
||||
Group All Media
|
||||
</MenuItem>
|
||||
|
||||
@ -79,7 +79,6 @@ export default function useAttachmentModal({
|
||||
|
||||
setShouldForceAsFile(Boolean(shouldForce && canSendDocuments));
|
||||
setShouldForceCompression(!canSendDocuments);
|
||||
setShouldSuggestCompression(undefined);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user