Fix for missing replacement text in bodyRanges

This commit is contained in:
Josh Perez 2021-03-05 12:57:09 -05:00 committed by Josh Perez
parent dab5386207
commit 3cc6c5f5ad
6 changed files with 72 additions and 38 deletions

View file

@ -3614,8 +3614,15 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
(this.getConversation()!.getAccepted() || message.isOutgoing()) &&
!shouldHoldOffDownload
) {
window.attachmentDownloadQueue = window.attachmentDownloadQueue || [];
window.attachmentDownloadQueue.unshift(message);
if (window.attachmentDownloadQueue) {
window.attachmentDownloadQueue.unshift(message);
window.log.info(
'Adding to attachmentDownloadQueue',
message.get('sent_at')
);
} else {
await message.queueAttachmentDownloads();
}
}
// Does this message have any pending, previously-received associated reactions?