Export/import attachments in integration tests

This commit is contained in:
Fedor Indutny 2024-10-11 12:14:28 -07:00 committed by GitHub
parent d42df4b201
commit 9ff6c75eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 292 additions and 116 deletions

View file

@ -95,8 +95,6 @@ export async function attemptToReencryptToOriginalDigest(
),
},
needIncrementalMac: false,
getAbsoluteAttachmentPath:
window.Signal.Migrations.getAbsoluteAttachmentPath,
});
} else {
strictAssert(attachment.size != null, 'Size must exist');
@ -127,8 +125,6 @@ export async function attemptToReencryptToOriginalDigest(
digestToMatch: fromBase64(digest),
},
needIncrementalMac: false,
getAbsoluteAttachmentPath:
window.Signal.Migrations.getAbsoluteAttachmentPath,
}),
]);
}
@ -150,8 +146,6 @@ export async function generateNewEncryptionInfoForAttachment(
),
},
needIncrementalMac: false,
getAbsoluteAttachmentPath:
window.Signal.Migrations.getAbsoluteAttachmentPath,
});
} else {
const passthrough = new PassThrough();
@ -177,8 +171,6 @@ export async function generateNewEncryptionInfoForAttachment(
size: attachment.size,
},
needIncrementalMac: false,
getAbsoluteAttachmentPath:
window.Signal.Migrations.getAbsoluteAttachmentPath,
}),
]);
// eslint-disable-next-line prefer-destructuring