2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-07 01:45:39 +00:00

Start multiboosts, support dynamic state.

This commit is contained in:
John Preston
2023-11-07 17:58:20 +04:00
parent 2d67557a91
commit a41bbd27c8
11 changed files with 300 additions and 191 deletions

View File

@@ -519,7 +519,9 @@ rpl::producer<rpl::no_value, QString> Boosts::request() {
: 0;
_boostStatus.overview = Data::BoostsOverview{
.isBoosted = data.is_my_boost(),
.mine = (data.vmy_boost_slots()
? data.vmy_boost_slots()->v.size()
: 0),
.level = std::max(data.vlevel().v, 0),
.boostCount = std::max(
data.vboosts().v,