Reuse files on disk for outgoing messages

This commit is contained in:
trevor-signal
2026-02-23 15:35:11 -05:00
committed by GitHub
parent 491de86ad3
commit 2b243bb457
12 changed files with 410 additions and 111 deletions

View File

@@ -100,17 +100,15 @@ describe('lightbox', function (this: Mocha.Suite) {
'koushik-chowdavarapu-105425-unsplash.jpg'
);
const [attachmentCat] = await sendMessageWithAttachments(
page,
pinned,
'Message1',
[imageCat]
);
const [attachmentSnow, attachmentWaterfall] =
await sendMessageWithAttachments(page, pinned, 'Message2', [
imageSnow,
imageWaterfall,
]);
const {
attachments: [attachmentCat],
} = await sendMessageWithAttachments(page, pinned, 'Message1', [imageCat]);
const {
attachments: [attachmentSnow, attachmentWaterfall],
} = await sendMessageWithAttachments(page, pinned, 'Message2', [
imageSnow,
imageWaterfall,
]);
await sendAttachmentsBack('Message3', [attachmentCat]);
await sendAttachmentsBack('Message4', [