filterValidAttachments: Allow attachments with no thumbnail
This commit is contained in:
parent
028a3f3ef0
commit
fd408c52cf
4 changed files with 8 additions and 29 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue