Fix GIF playback glitch after loading.

This commit is contained in:
John Preston 2018-02-13 12:48:42 +03:00
parent fe262701c0
commit 22a5b7faf6

View file

@ -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) {