mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
Deduplicate incoming attachments on disk
This commit is contained in:
@@ -10,7 +10,7 @@ import { DurationInSeconds } from '../util/durations/index.std.js';
|
||||
import {
|
||||
getAbsoluteAttachmentPath,
|
||||
writeNewAttachmentData,
|
||||
deleteAttachmentData,
|
||||
maybeDeleteAttachmentFile,
|
||||
} from '../util/migrations.preload.js';
|
||||
import type { ContactAvatarType } from '../types/Avatar.std.js';
|
||||
import type { AttachmentType } from '../types/Attachment.std.js';
|
||||
@@ -173,7 +173,7 @@ export class ParseContactsTransform extends Transform {
|
||||
this.contacts.push(prepared);
|
||||
} else {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await deleteAttachmentData(local.path);
|
||||
await maybeDeleteAttachmentFile(local.path);
|
||||
}
|
||||
this.activeContact = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user