Deduplicate incoming stickers from installed sticker packs

This commit is contained in:
trevor-signal
2026-02-12 12:36:53 -05:00
committed by GitHub
parent 95f131efbf
commit ae90a74cef
8 changed files with 235 additions and 194 deletions

View File

@@ -316,6 +316,7 @@ export const readAndDecryptDataFromDisk = async ({
return Buffer.concat(chunks);
};
export const CURRENT_ATTACHMENT_VERSION = 2;
export const writeNewAttachmentData = async ({
data,
getAbsoluteAttachmentPath,
@@ -333,7 +334,7 @@ export const writeNewAttachmentData = async ({
});
return {
version: 2,
version: CURRENT_ATTACHMENT_VERSION,
plaintextHash,
size: data.byteLength,
path,