Ensure attachmentDownloadQueue retains fresh attributes
This commit is contained in:
parent
8ef0ec706d
commit
f644ab8a01
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@ export async function flushAttachmentDownloadQueue(): Promise<void> {
|
|||
);
|
||||
|
||||
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<MessageAttributesType> = [];
|
||||
messagesWithDownloads.forEach((shouldSave, messageKey) => {
|
||||
|
|
Loading…
Reference in a new issue