Remove autoOrientJPEG and consolidate downscaling logic

This commit is contained in:
trevor-signal 2024-03-06 16:49:21 -05:00 committed by GitHub
parent 3eed6cb350
commit 09b5e6ef50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 105 additions and 144 deletions

View file

@ -111,7 +111,7 @@ type MigrationsModuleType = {
}>;
upgradeMessageSchema: (
attributes: MessageAttributesType,
options?: { maxVersion?: number; keepOnDisk?: boolean }
options?: { maxVersion?: number }
) => Promise<MessageAttributesType>;
writeMessageAttachments: (
message: MessageAttributesType
@ -266,9 +266,9 @@ export function initializeMigrations({
}),
upgradeMessageSchema: (
message: MessageAttributesType,
options: { maxVersion?: number; keepOnDisk?: boolean } = {}
options: { maxVersion?: number } = {}
) => {
const { maxVersion, keepOnDisk } = options;
const { maxVersion } = options;
return MessageType.upgradeSchema(message, {
deleteOnDisk,
@ -283,7 +283,6 @@ export function initializeMigrations({
writeNewAttachmentData,
writeNewStickerData,
keepOnDisk,
logger,
maxVersion,
});