Video, Round Video: Fix flickering thumbnail (#1216)

This commit is contained in:
Alexander Zinchuk 2021-07-01 16:15:02 +03:00
parent 75ffbf488b
commit 2dcaa804e2
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ const RoundVideo: FC<OwnProps> = ({
className="RoundVideo media-inner"
onClick={handleClick}
>
{shouldRenderThumb && (
{(shouldRenderThumb || mediaData) && (
<div className="thumbnail-wrapper">
<canvas
ref={thumbRef}

View File

@ -153,7 +153,7 @@ const Video: FC<OwnProps> = ({
style={style}
onClick={isUploading ? undefined : handleClick}
>
{(!isInline || shouldRenderThumb)
{(!isInline || shouldRenderThumb || shouldRenderInlineVideo)
&& (
<canvas
ref={thumbRef}