Start downloading story thumbnails

This commit is contained in:
Josh Perez 2022-07-01 01:36:40 -04:00 committed by GitHub
parent 9155784d56
commit 6cd1e3fdfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -47,9 +47,8 @@ export const StoryImage = ({
storyId,
}: PropsType): JSX.Element | null => {
const shouldDownloadAttachment =
!isDownloaded(attachment) &&
!isDownloading(attachment) &&
!hasNotResolved(attachment);
(!isDownloaded(attachment) && !isDownloading(attachment)) ||
hasNotResolved(attachment);
const videoRef = useRef<HTMLVideoElement | null>(null);