From 22a5b7faf6110fc0460423a884a603afbcb0c4cd Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 13 Feb 2018 12:48:42 +0300 Subject: [PATCH] Fix GIF playback glitch after loading. --- Telegram/SourceFiles/history/history_media_types.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index 33002f6ab..765d55d6b 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -2646,6 +2646,8 @@ void HistoryGif::clipCallback(Media::Clip::Notification notification) { void HistoryGif::playAnimation(bool autoplay) { if (_data->isVideoMessage() && !autoplay) { return; + } else if (_gif && autoplay) { + return; } using Mode = Media::Clip::Reader::Mode; if (_gif) {