diff --git a/ts/util/attachmentDownloadQueue.ts b/ts/util/attachmentDownloadQueue.ts index de53011940..09bca78fa3 100644 --- a/ts/util/attachmentDownloadQueue.ts +++ b/ts/util/attachmentDownloadQueue.ts @@ -66,7 +66,11 @@ export async function flushAttachmentDownloadQueue(): Promise { ); const messagesWithDownloads = await Promise.all( - attachmentsToDownload.map(message => message.queueAttachmentDownloads()) + attachmentsToDownload.map(message => { + const updatedMessage = + window.MessageCache.__DEPRECATED$getById(message.id) ?? message; + return updatedMessage.queueAttachmentDownloads(); + }) ); const messagesToSave: Array = []; messagesWithDownloads.forEach((shouldSave, messageKey) => {