Improve ref counting when deduplicating attachments on disk

This commit is contained in:
trevor-signal
2026-02-12 17:34:12 -05:00
committed by GitHub
parent ef9e437362
commit ffd962fd50
11 changed files with 374 additions and 53 deletions

View File

@@ -1444,12 +1444,20 @@ type WritableInterface = {
plaintextHash,
version,
contentType,
messageId,
}: {
plaintextHash: string;
version: number;
contentType: MIMEType;
messageId: string;
}) => ExistingAttachmentData | undefined;
_protectAttachmentPathFromDeletion: (path: string) => void;
_protectAttachmentPathFromDeletion: ({
path,
messageId,
}: {
path: string;
messageId: string;
}) => void;
resetProtectedAttachmentPaths: () => void;
removeAll: () => void;