video download behavior

This commit is contained in:
Reinaldo Neto 2023-05-19 01:30:22 -03:00
parent 95cbe25ae7
commit aa2c2886a0
1 changed files with 1 additions and 3 deletions

View File

@ -92,7 +92,6 @@ const Video = React.memo(
mimeType: file.video_type,
messageId
});
console.log('🚀 ~ file: Video.tsx:100 ~ handleAutoDownload ~ searchVideoCached:', searchVideoCached);
filePath.current = searchVideoCached.filePath;
const downloadActive = isDownloadActive(MediaTypes.video, messageId);
if (searchVideoCached.file?.exists) {
@ -130,11 +129,10 @@ const Video = React.memo(
messageId,
path: filePath.current
});
console.log('🚀 ~ file: Video.tsx:137 ~ handleDownload ~ videoUri:', videoUri);
if (videoUri) {
setNewFile(prev => ({
...prev,
video_url: videoUri
video_url: filePath.current
}));
}
setLoading(false);