Ensure that stories download on view (#9945)

This commit is contained in:
Scott Nonnenberg
2025-03-11 06:53:54 +10:00
committed by GitHub
parent a7fb551d3e
commit aab4021d37

View File

@@ -70,6 +70,7 @@ import {
} from '../../jobs/conversationJobQueue';
import { ReceiptType } from '../../types/Receipt';
import { cleanupMessages } from '../../util/cleanup';
import { AttachmentDownloadUrgency } from '../../jobs/AttachmentDownloadManager';
export type StoryDataType = ReadonlyDeep<
{
@@ -531,6 +532,7 @@ function queueStoryDownload(
const wasUpdated = await queueAttachmentDownloads(message, {
isManualDownload: true,
urgency: AttachmentDownloadUrgency.IMMEDIATE,
});
if (wasUpdated) {
await window.MessageCache.saveMessage(message);