From 2dcaa804e2da6f927a68dc815db58b03dbf93a58 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 1 Jul 2021 16:15:02 +0300 Subject: [PATCH] Video, Round Video: Fix flickering thumbnail (#1216) --- src/components/middle/message/RoundVideo.tsx | 2 +- src/components/middle/message/Video.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/middle/message/RoundVideo.tsx b/src/components/middle/message/RoundVideo.tsx index cca135d8..1172daa2 100644 --- a/src/components/middle/message/RoundVideo.tsx +++ b/src/components/middle/message/RoundVideo.tsx @@ -181,7 +181,7 @@ const RoundVideo: FC = ({ className="RoundVideo media-inner" onClick={handleClick} > - {shouldRenderThumb && ( + {(shouldRenderThumb || mediaData) && (
= ({ style={style} onClick={isUploading ? undefined : handleClick} > - {(!isInline || shouldRenderThumb) + {(!isInline || shouldRenderThumb || shouldRenderInlineVideo) && (