From 849def7e75a6beedfec00da8c09c7c4942a23f7d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 15 Dec 2025 21:34:35 +0400 Subject: [PATCH] Don't disable dice/slots animation. --- .../SourceFiles/history/view/media/history_view_sticker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_sticker.cpp b/Telegram/SourceFiles/history/view/media/history_view_sticker.cpp index c5472feda6..b90c2b4525 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_sticker.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_sticker.cpp @@ -305,10 +305,11 @@ void Sticker::paintAnimationFrame( : (context.selected() && !_nextLastFrame) ? context.st->msgStickerOverlay()->c : QColor(0, 0, 0, 0); - const auto powerSavingFlag = (emojiSticker() || _diceIndex >= 0) + const auto powerSavingFlag = emojiSticker() ? PowerSaving::kEmojiChat : PowerSaving::kStickersChat; - const auto paused = context.paused || On(powerSavingFlag); + const auto paused = context.paused + || (_diceIndex < 0 && On(powerSavingFlag)); const auto frame = _player ? _player->frame( _size,