mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
Fix display of gifts from bots.
This commit is contained in:
parent
8895b4e8a3
commit
4938b18f9d
2 changed files with 8 additions and 2 deletions
|
@ -108,7 +108,13 @@ TextWithEntities PremiumGift::subtitle() {
|
|||
? tr::lng_action_gift_self_about_unique(
|
||||
tr::now,
|
||||
Ui::Text::RichLangValue)
|
||||
: ((_data.converted || !_data.starsConverted)
|
||||
: (!_data.converted && !_data.starsConverted)
|
||||
? (_data.saved
|
||||
? tr::lng_action_gift_can_remove_text
|
||||
: tr::lng_action_gift_got_gift_text)(
|
||||
tr::now,
|
||||
Ui::Text::RichLangValue)
|
||||
: (_data.converted
|
||||
? tr::lng_gift_got_stars
|
||||
: _parent->history()->peer->isSelf()
|
||||
? tr::lng_action_gift_self_about
|
||||
|
|
|
@ -1665,7 +1665,7 @@ void UserStarGiftBox(
|
|||
.peerType = Data::CreditsHistoryEntry::PeerType::Peer,
|
||||
.limitedCount = data.info.limitedCount,
|
||||
.limitedLeft = data.info.limitedLeft,
|
||||
.starsConverted = int(data.info.starsConverted),
|
||||
.starsConverted = int(data.starsConverted),
|
||||
.starsToUpgrade = int(data.info.starsToUpgrade),
|
||||
.starsUpgradedBySender = int(data.starsUpgradedBySender),
|
||||
.converted = false,
|
||||
|
|
Loading…
Add table
Reference in a new issue