autoOrientJPEG: Protect against missing message parameter

This commit is contained in:
Scott Nonnenberg 2021-06-30 15:07:47 -07:00 committed by GitHub
parent 3b444479c0
commit c135219acb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ exports.autoOrientJPEG = async (attachment, _, message) => {
);
const xcodedDataBlob = await scaleImageToLevel(
dataBlob,
message.sendHQImages
message ? message.sendHQImages : false
);
const xcodedDataArrayBuffer = await blobToArrayBuffer(xcodedDataBlob);