Improve handling of edited long message attachments

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2025-02-26 12:11:27 -06:00 committed by GitHub
commit e5ab61e7c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 357 additions and 77 deletions

View file

@ -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;