From 336705a503432a75ad921ee4fabdf9d7bab91521 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 3 Nov 2023 15:19:52 +0300 Subject: [PATCH] Fixed description in box for boosting. Regression was introduced in d82c422ea1. --- Telegram/SourceFiles/ui/boxes/boost_box.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Telegram/SourceFiles/ui/boxes/boost_box.cpp b/Telegram/SourceFiles/ui/boxes/boost_box.cpp index fb7708907..e9ffe759d 100644 --- a/Telegram/SourceFiles/ui/boxes/boost_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/boost_box.cpp @@ -63,6 +63,14 @@ void BoostBox( data.boost, st::boxRowPadding); + { + const auto &d = data.boost; + if (!d.nextLevelBoosts + || ((d.thisLevelBoosts == d.boosts) && d.mine)) { + --data.boost.level; + } + } + box->addTopButton(st::boxTitleClose, [=] { box->closeBox(); }); const auto name = data.name;