Video, Round Video: Fix flickering thumbnail (#1216)
This commit is contained in:
parent
75ffbf488b
commit
2dcaa804e2
@ -181,7 +181,7 @@ const RoundVideo: FC<OwnProps> = ({
|
||||
className="RoundVideo media-inner"
|
||||
onClick={handleClick}
|
||||
>
|
||||
{shouldRenderThumb && (
|
||||
{(shouldRenderThumb || mediaData) && (
|
||||
<div className="thumbnail-wrapper">
|
||||
<canvas
|
||||
ref={thumbRef}
|
||||
|
||||
@ -153,7 +153,7 @@ const Video: FC<OwnProps> = ({
|
||||
style={style}
|
||||
onClick={isUploading ? undefined : handleClick}
|
||||
>
|
||||
{(!isInline || shouldRenderThumb)
|
||||
{(!isInline || shouldRenderThumb || shouldRenderInlineVideo)
|
||||
&& (
|
||||
<canvas
|
||||
ref={thumbRef}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user