Attachment Modal: Save suggested compression only on paste (#3755)
This commit is contained in:
parent
43c9354944
commit
081eca103e
@ -264,7 +264,7 @@ const AttachmentModal: FC<OwnProps & StateProps> = ({
|
||||
: isSilent ? onSendSilent : onSend;
|
||||
send(isSendingCompressed, shouldSendGrouped);
|
||||
updateAttachmentSettings({
|
||||
shouldCompress: isSendingCompressed,
|
||||
shouldCompress: shouldSuggestCompression === undefined ? isSendingCompressed : undefined,
|
||||
shouldSendGrouped,
|
||||
});
|
||||
}
|
||||
|
||||
@ -79,6 +79,7 @@ export default function useAttachmentModal({
|
||||
|
||||
setShouldForceAsFile(Boolean(shouldForce && canSendDocuments));
|
||||
setShouldForceCompression(!canSendDocuments);
|
||||
setShouldSuggestCompression(undefined);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user