mirror of https://github.com/procxx/kepka.git
Fix GIF playback glitch after loading.
This commit is contained in:
parent
fe262701c0
commit
22a5b7faf6
|
@ -2646,6 +2646,8 @@ void HistoryGif::clipCallback(Media::Clip::Notification notification) {
|
||||||
void HistoryGif::playAnimation(bool autoplay) {
|
void HistoryGif::playAnimation(bool autoplay) {
|
||||||
if (_data->isVideoMessage() && !autoplay) {
|
if (_data->isVideoMessage() && !autoplay) {
|
||||||
return;
|
return;
|
||||||
|
} else if (_gif && autoplay) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
using Mode = Media::Clip::Reader::Mode;
|
using Mode = Media::Clip::Reader::Mode;
|
||||||
if (_gif) {
|
if (_gif) {
|
||||||
|
|
Loading…
Reference in New Issue