Fix media not auto-downloading
This commit is contained in:
parent
a8962c7d20
commit
16f0f4262a
1 changed files with 2 additions and 2 deletions
|
@ -2563,14 +2563,14 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
}
|
||||
|
||||
const shouldHoldOffDownload =
|
||||
!queueStoryForDownload ||
|
||||
(isStory(message.attributes) && !queueStoryForDownload) ||
|
||||
((isImage(attachments) || isVideo(attachments)) &&
|
||||
isInCall(reduxState));
|
||||
|
||||
if (
|
||||
this.hasAttachmentDownloads() &&
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
(this.getConversation()!.getAccepted() ||
|
||||
queueStoryForDownload ||
|
||||
isOutgoing(message.attributes)) &&
|
||||
!shouldHoldOffDownload
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue