From 3e374eda51739e2384d0b26c5a31ac0ff4a8173d Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 3 Apr 2019 16:13:42 +0400 Subject: [PATCH] Fix video messages with disabled autoplay. --- Telegram/SourceFiles/history/media/history_media_gif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/media/history_media_gif.cpp b/Telegram/SourceFiles/history/media/history_media_gif.cpp index 1c4cfc3773..1b0dd4b66d 100644 --- a/Telegram/SourceFiles/history/media/history_media_gif.cpp +++ b/Telegram/SourceFiles/history/media/history_media_gif.cpp @@ -370,7 +370,7 @@ void HistoryGif::draw(Painter &p, const QRect &r, TextSelection selection, crl:: App::complexOverlayRect(p, rthumb, roundRadius, roundCorners); } - if (radial || (!reader && (_gif.isBad() || (!loaded && !_data->loading()) || !cAutoPlayGif()))) { + if (radial || (!reader && !player && (_gif.isBad() || (!loaded && !_data->loading()) || !cAutoPlayGif()))) { auto radialOpacity = (radial && loaded && item->id > 0) ? _animation->radial.opacity() : 1.; auto inner = QRect(rthumb.x() + (rthumb.width() - st::msgFileSize) / 2, rthumb.y() + (rthumb.height() - st::msgFileSize) / 2, st::msgFileSize, st::msgFileSize); p.setPen(Qt::NoPen);