Deduplicate incoming attachments on disk

This commit is contained in:
trevor-signal
2026-02-05 14:48:31 -05:00
committed by GitHub
parent 85cc412b40
commit 834f0c7775
51 changed files with 1727 additions and 560 deletions

View File

@@ -25,7 +25,7 @@ const {
insertProtoRecipients,
insertSentProto,
removeAllSentProtos,
removeMessage,
removeMessageById,
saveMessage,
} = DataWriter;
@@ -155,7 +155,7 @@ describe('sql/sendLog', () => {
assert.strictEqual(actual.timestamp, proto.timestamp);
await removeMessage(id, { cleanupMessages });
await removeMessageById(id, { cleanupMessages });
assert.lengthOf(await getAllSentProtos(), 0);
});