2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support non-convertible star gifts from bots.

This commit is contained in:
John Preston
2024-11-15 12:14:49 +04:00
parent d0911b6a45
commit 3cfbd6a93b
13 changed files with 63 additions and 43 deletions

View File

@@ -69,19 +69,20 @@ struct CreditsHistoryEntry final {
QString successLink;
int limitedCount = 0;
int limitedLeft = 0;
int convertStars = 0;
int starsConverted = 0;
int floodSkip = 0;
bool converted = false;
bool anonymous = false;
bool savedToProfile = false;
bool fromGiftsList = false;
bool soldOutInfo = false;
bool reaction = false;
bool refunded = false;
bool pending = false;
bool failed = false;
bool in = false;
bool gift = false;
bool converted : 1 = false;
bool anonymous : 1 = false;
bool stargift : 1 = false;
bool savedToProfile : 1 = false;
bool fromGiftsList : 1 = false;
bool soldOutInfo : 1 = false;
bool reaction : 1 = false;
bool refunded : 1 = false;
bool pending : 1 = false;
bool failed : 1 = false;
bool in : 1 = false;
bool gift : 1 = false;
};
struct CreditsStatusSlice final {

View File

@@ -139,7 +139,7 @@ struct GiftCode {
TextWithEntities message;
ChannelData *channel = nullptr;
MsgId giveawayMsgId = 0;
int convertStars = 0;
int starsConverted = 0;
int limitedCount = 0;
int limitedLeft = 0;
int count = 0;