diff --git a/js/modules/types/attachment.js b/js/modules/types/attachment.js index 0a674934a937..712d5a6c95d3 100644 --- a/js/modules/types/attachment.js +++ b/js/modules/types/attachment.js @@ -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);