mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix GIF playback glitch after loading.
This commit is contained in:
parent
fe262701c0
commit
22a5b7faf6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue