mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Deduplicate incoming stickers from installed sticker packs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user