From a8ffb21bfa161667f260dd8fd081d567bcc244b1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 15 Jun 2022 16:50:08 +0400 Subject: [PATCH] Fix premium sticker preview switching. --- Telegram/SourceFiles/boxes/premium_preview_box.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/boxes/premium_preview_box.cpp b/Telegram/SourceFiles/boxes/premium_preview_box.cpp index b3f7634933..545de7cc47 100644 --- a/Telegram/SourceFiles/boxes/premium_preview_box.cpp +++ b/Telegram/SourceFiles/boxes/premium_preview_box.cpp @@ -371,6 +371,7 @@ void PreloadSticker(const std::shared_ptr &media) { state->toggleTimer.callOnce(kToggleStickerTimeout); } }; + state->timerFired = false; ++state->index; state->index %= state->medias.size(); delete std::exchange(state->previous, state->current);