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 =
|
const shouldHoldOffDownload =
|
||||||
!queueStoryForDownload ||
|
(isStory(message.attributes) && !queueStoryForDownload) ||
|
||||||
((isImage(attachments) || isVideo(attachments)) &&
|
((isImage(attachments) || isVideo(attachments)) &&
|
||||||
isInCall(reduxState));
|
isInCall(reduxState));
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.hasAttachmentDownloads() &&
|
this.hasAttachmentDownloads() &&
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
(this.getConversation()!.getAccepted() ||
|
(this.getConversation()!.getAccepted() ||
|
||||||
queueStoryForDownload ||
|
|
||||||
isOutgoing(message.attributes)) &&
|
isOutgoing(message.attributes)) &&
|
||||||
!shouldHoldOffDownload
|
!shouldHoldOffDownload
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue