mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
updateSchema: Be resilient to invalid images
This commit is contained in:
@@ -580,9 +580,13 @@ export const processNewAttachment = async (
|
||||
throw new TypeError('context.logger is required');
|
||||
}
|
||||
|
||||
const rotatedAttachment = await autoOrientJPEG(attachment, undefined, {
|
||||
isIncoming: true,
|
||||
});
|
||||
const rotatedAttachment = await autoOrientJPEG(
|
||||
attachment,
|
||||
{ logger },
|
||||
{
|
||||
isIncoming: true,
|
||||
}
|
||||
);
|
||||
const onDiskAttachment = await migrateDataToFileSystem(rotatedAttachment, {
|
||||
writeNewAttachmentData,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user