mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-03 10:07:55 +01:00
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…
Reference in New Issue
Block a user