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

View file

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