Improve handling of edited long message attachments
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
9631d53aec
commit
e5ab61e7c5
9 changed files with 357 additions and 77 deletions
|
@ -122,9 +122,11 @@ function hasRequiredAttachmentDownloads(
|
|||
): boolean {
|
||||
const attachments: ReadonlyArray<AttachmentType> = message.attachments || [];
|
||||
|
||||
const hasLongMessageAttachments = attachments.some(attachment => {
|
||||
return MIME.isLongMessage(attachment.contentType);
|
||||
});
|
||||
const hasLongMessageAttachments =
|
||||
Boolean(message.bodyAttachment) ||
|
||||
attachments.some(attachment => {
|
||||
return MIME.isLongMessage(attachment.contentType);
|
||||
});
|
||||
|
||||
if (hasLongMessageAttachments) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue