mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Improve ref counting when deduplicating attachments on disk
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user