Only queue backfilled attachments after backfill response

This commit is contained in:
trevor-signal
2025-07-15 10:42:57 -04:00
committed by GitHub
parent e938e68c7d
commit 2579dfd9d9
14 changed files with 130 additions and 87 deletions

View File

@@ -11,7 +11,7 @@ import * as MIME from '../types/MIME';
import { DataWriter } from '../sql/Client';
import { isMoreRecentThan } from './timestamp';
import { isNotNil } from './isNotNil';
import { queueAttachmentDownloadsForMessage } from './queueAttachmentDownloads';
import { queueAttachmentDownloads } from './queueAttachmentDownloads';
import { postSaveUpdates } from './cleanup';
const log = createLogger('attachmentDownloadQueue');
@@ -90,7 +90,7 @@ export async function flushAttachmentDownloadQueue(): Promise<void> {
// to display the message properly.
hasRequiredAttachmentDownloads(message.attributes)
) {
const shouldSave = await queueAttachmentDownloadsForMessage(message, {
const shouldSave = await queueAttachmentDownloads(message, {
isManualDownload: false,
});
if (shouldSave) {