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;