mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-04 18:50:31 +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"
|
className="RoundVideo media-inner"
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
{shouldRenderThumb && (
|
{(shouldRenderThumb || mediaData) && (
|
||||||
<div className="thumbnail-wrapper">
|
<div className="thumbnail-wrapper">
|
||||||
<canvas
|
<canvas
|
||||||
ref={thumbRef}
|
ref={thumbRef}
|
||||||
|
@ -153,7 +153,7 @@ const Video: FC<OwnProps> = ({
|
|||||||
style={style}
|
style={style}
|
||||||
onClick={isUploading ? undefined : handleClick}
|
onClick={isUploading ? undefined : handleClick}
|
||||||
>
|
>
|
||||||
{(!isInline || shouldRenderThumb)
|
{(!isInline || shouldRenderThumb || shouldRenderInlineVideo)
|
||||||
&& (
|
&& (
|
||||||
<canvas
|
<canvas
|
||||||
ref={thumbRef}
|
ref={thumbRef}
|
||||||
|
Loading…
Reference in New Issue
Block a user