Allow stage and send of video, even if we can't get screenshot

This commit is contained in:
Scott Nonnenberg 2021-11-15 13:54:33 -08:00 committed by GitHub
parent 117cb074c7
commit a024ee4b96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 224 additions and 143 deletions

View file

@ -15,6 +15,7 @@ export type Props = {
attachment: AttachmentType;
url?: string;
isDownloaded?: boolean;
className?: string;
height?: number;
width?: number;
@ -145,6 +146,7 @@ export class Image extends React.Component<Props> {
curveTopLeft,
curveTopRight,
darkOverlay,
isDownloaded,
height = 0,
i18n,
noBackground,
@ -165,7 +167,9 @@ export class Image extends React.Component<Props> {
const { caption, pending } = attachment || { caption: null, pending: true };
const canClick = this.canClick();
const imgNotDownloaded = hasNotDownloaded(attachment);
const imgNotDownloaded = isDownloaded
? false
: hasNotDownloaded(attachment);
const resolvedBlurHash = blurHash || defaultBlurHash(theme);