From 4836173fe60b801adb668b6a5028e3764ab40271 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 13 Dec 2018 15:33:38 +0400 Subject: [PATCH] Version 1.5.2: Fix video message duration. --- .../SourceFiles/history/history_media_types.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index 6ba11476ce..1867613eb5 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -2256,17 +2256,13 @@ void HistoryGif::draw(Painter &p, const QRect &r, TextSelection selection, TimeM : false; const auto animating = reader && reader->started(); - if (!animating || item->id < 0) { - if (displayLoading) { - ensureAnimation(); - if (!_animation->radial.animating()) { - _animation->radial.start(dataProgress()); - } + if ((!animating || item->id < 0) && displayLoading) { + ensureAnimation(); + if (!_animation->radial.animating()) { + _animation->radial.start(dataProgress()); } - updateStatusText(); - } else if (playingVideo) { - updateStatusText(); } + updateStatusText(); auto radial = isRadialAnimation(ms); if (bubble) {