Adds error states to story images
This commit is contained in:
parent
782838c591
commit
fcf7406dd4
12 changed files with 158 additions and 21 deletions
|
@ -768,6 +768,10 @@ export function isDownloading(attachment?: AttachmentType): boolean {
|
|||
return Boolean(attachment && attachment.downloadJobId && attachment.pending);
|
||||
}
|
||||
|
||||
export function hasFailed(attachment?: AttachmentType): boolean {
|
||||
return Boolean(attachment && attachment.error);
|
||||
}
|
||||
|
||||
export function hasVideoBlurHash(attachments?: Array<AttachmentType>): boolean {
|
||||
const firstAttachment = attachments ? attachments[0] : null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue