Ensure that we resolve attachments before displaying them

This commit is contained in:
Josh Perez 2022-04-25 13:25:50 -04:00 committed by GitHub
parent 72f979ea1d
commit d8708e4e73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 319 additions and 31 deletions

View file

@ -730,7 +730,7 @@ export function isDownloaded(attachment?: AttachmentType): boolean {
}
export function hasNotResolved(attachment?: AttachmentType): boolean {
return Boolean(attachment && !attachment.url);
return Boolean(attachment && !attachment.url && !attachment.textAttachment);
}
export function isDownloading(attachment?: AttachmentType): boolean {