avoid onpress do some edge case because of cached at video
This commit is contained in:
parent
edd4fb699a
commit
42507b6921
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue