Improve recovery from corrupted downloads

This commit is contained in:
trevor-signal 2025-02-25 14:18:34 -05:00 committed by GitHub
commit 572849b9dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 10 deletions

View file

@ -134,7 +134,9 @@ describe('utils/ensureAttachmentIsReencryptable', async () => {
after(async () => {
if (path) {
await safeUnlink(path);
await safeUnlink(
window.Signal.Migrations.getAbsoluteAttachmentPath(path)
);
}
});