Ensure that stories download on view (#9945)
This commit is contained in:
@@ -70,6 +70,7 @@ import {
|
|||||||
} from '../../jobs/conversationJobQueue';
|
} from '../../jobs/conversationJobQueue';
|
||||||
import { ReceiptType } from '../../types/Receipt';
|
import { ReceiptType } from '../../types/Receipt';
|
||||||
import { cleanupMessages } from '../../util/cleanup';
|
import { cleanupMessages } from '../../util/cleanup';
|
||||||
|
import { AttachmentDownloadUrgency } from '../../jobs/AttachmentDownloadManager';
|
||||||
|
|
||||||
export type StoryDataType = ReadonlyDeep<
|
export type StoryDataType = ReadonlyDeep<
|
||||||
{
|
{
|
||||||
@@ -531,6 +532,7 @@ function queueStoryDownload(
|
|||||||
|
|
||||||
const wasUpdated = await queueAttachmentDownloads(message, {
|
const wasUpdated = await queueAttachmentDownloads(message, {
|
||||||
isManualDownload: true,
|
isManualDownload: true,
|
||||||
|
urgency: AttachmentDownloadUrgency.IMMEDIATE,
|
||||||
});
|
});
|
||||||
if (wasUpdated) {
|
if (wasUpdated) {
|
||||||
await window.MessageCache.saveMessage(message);
|
await window.MessageCache.saveMessage(message);
|
||||||
|
Reference in New Issue
Block a user