mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix premium sticker preview switching.
This commit is contained in:
parent
226154baa5
commit
a8ffb21bfa
1 changed files with 1 additions and 0 deletions
|
@ -371,6 +371,7 @@ void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
|
|||
state->toggleTimer.callOnce(kToggleStickerTimeout);
|
||||
}
|
||||
};
|
||||
state->timerFired = false;
|
||||
++state->index;
|
||||
state->index %= state->medias.size();
|
||||
delete std::exchange(state->previous, state->current);
|
||||
|
|
Loading…
Add table
Reference in a new issue