Do not download media if in call
This commit is contained in:
parent
d22add261b
commit
a096220990
16 changed files with 274 additions and 47 deletions
|
@ -169,6 +169,16 @@ export function isVideoAttachment(
|
|||
);
|
||||
}
|
||||
|
||||
export function hasNotDownloaded(attachment?: AttachmentType): boolean {
|
||||
return Boolean(attachment && !attachment.url && attachment.blurHash);
|
||||
}
|
||||
|
||||
export function hasVideoBlurHash(attachments?: Array<AttachmentType>): boolean {
|
||||
const firstAttachment = attachments ? attachments[0] : null;
|
||||
|
||||
return Boolean(firstAttachment && firstAttachment.blurHash);
|
||||
}
|
||||
|
||||
export function hasVideoScreenshot(
|
||||
attachments?: Array<AttachmentType>
|
||||
): string | null | undefined {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue