2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Implement upgraded unique gifts.

This commit is contained in:
John Preston
2024-12-26 10:10:44 +04:00
parent a87d19998e
commit 13d2f70c3a
22 changed files with 1077 additions and 157 deletions

View File

@@ -94,7 +94,7 @@ constexpr auto kTransactionsLimit = 100;
const auto parsedGift = stargift
? FromTL(&peer->session(), *stargift)
: std::optional<Data::StarGift>();
const auto giftStickerId = parsedGift ? parsedGift->stickerId : 0;
const auto giftStickerId = parsedGift ? parsedGift->document->id : 0;
return Data::CreditsHistoryEntry{
.id = qs(tl.data().vid()),
.title = qs(tl.data().vtitle().value_or_empty()),