From 2cc1fde5e49c1933923e6d50fa888f0062a906e9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 31 Dec 2017 15:21:08 +0300 Subject: [PATCH] Remove thumb glitch when uploading files. --- Telegram/SourceFiles/history/history_media_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index 86e676f83..8b5088437 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -140,7 +140,7 @@ void HistoryFileMedia::clickHandlerActiveChanged(const ClickHandlerPtr &p, bool if (active && !dataLoaded()) { ensureAnimation(); _animation->a_thumbOver.start([this] { thumbAnimationCallback(); }, 0., 1., st::msgFileOverDuration); - } else if (!active && _animation) { + } else if (!active && _animation && !dataLoaded()) { _animation->a_thumbOver.start([this] { thumbAnimationCallback(); }, 1., 0., st::msgFileOverDuration); } }