avoid onpress do some edge case because of cached at video

This commit is contained in:
Reinaldo Neto 2023-07-05 14:16:39 -03:00
parent edd4fb699a
commit 42507b6921
1 changed files with 2 additions and 2 deletions

View File

@ -177,11 +177,11 @@ const Video = React.memo(
showAttachment(videoCached); showAttachment(videoCached);
return; return;
} }
if (!loading) { if (!loading && !cached) {
handleDownload(); handleDownload();
return; return;
} }
if (loading) { if (loading && !cached) {
handleCancelDownload(); handleCancelDownload();
return; return;
} }