filterValidAttachments: Allow attachments with no thumbnail

This commit is contained in:
Scott Nonnenberg 2024-09-17 07:02:48 +10:00 committed by GitHub
parent 028a3f3ef0
commit fd408c52cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 29 deletions

View file

@ -232,7 +232,7 @@ function filterValidAttachments(
attributes: ReadonlyMessageAttributesType
): Array<AttachmentType> {
return (attributes.attachments ?? []).filter(
item => item.thumbnail && !item.pending && !item.error
item => !item.pending && !item.error
);
}