mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Implement auction info box (active/ended).
This commit is contained in:
@@ -856,9 +856,10 @@ std::optional<Data::StarGift> FromTL(
|
||||
.starsResellMin = int64(resellPrice),
|
||||
.document = document,
|
||||
.releasedBy = releasedBy,
|
||||
.auctionSlug = qs(data.vauction_slug().value_or_empty()),
|
||||
.resellTitle = qs(data.vtitle().value_or_empty()),
|
||||
.resellCount = int(data.vavailability_resale().value_or_empty()),
|
||||
.auctionSlug = qs(data.vauction_slug().value_or_empty()),
|
||||
.auctionGiftsPerRound = data.vgifts_per_round().value_or_empty(),
|
||||
.limitedLeft = remaining.value_or_empty(),
|
||||
.limitedCount = total.value_or_empty(),
|
||||
.perUserTotal = data.vper_user_total().value_or_empty(),
|
||||
@@ -870,7 +871,6 @@ std::optional<Data::StarGift> FromTL(
|
||||
.peerColorAvailable = data.is_peer_color_available(),
|
||||
.upgradable = data.vupgrade_stars().has_value(),
|
||||
.birthday = data.is_birthday(),
|
||||
.auction = data.is_auction(),
|
||||
.soldOut = data.is_sold_out(),
|
||||
});
|
||||
}, [&](const MTPDstarGiftUnique &data) {
|
||||
|
||||
Reference in New Issue
Block a user