mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Improve convert-to-stars message in channel gift.
This commit is contained in:
@@ -140,7 +140,9 @@ TextWithEntities PremiumGift::subtitle() {
|
||||
tr::now,
|
||||
Ui::Text::RichLangValue)
|
||||
: (_data.converted
|
||||
? tr::lng_gift_got_stars
|
||||
? (toChannel
|
||||
? tr::lng_gift_channel_got
|
||||
: tr::lng_gift_got_stars)
|
||||
: _parent->history()->peer->isSelf()
|
||||
? tr::lng_action_gift_self_about
|
||||
: toChannel
|
||||
|
||||
@@ -254,11 +254,13 @@ void ConvertStarGift(
|
||||
window->showSettings(Settings::CreditsId());
|
||||
}
|
||||
}
|
||||
show->showToast(tr::lng_gift_got_stars(
|
||||
tr::now,
|
||||
lt_count,
|
||||
stars,
|
||||
Ui::Text::RichLangValue));
|
||||
show->showToast((savedId.chat()
|
||||
? tr::lng_gift_channel_got
|
||||
: tr::lng_gift_got_stars)(
|
||||
tr::now,
|
||||
lt_count,
|
||||
stars,
|
||||
Ui::Text::RichLangValue));
|
||||
done(true);
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
show->showToast(error.type());
|
||||
@@ -1344,7 +1346,9 @@ void GenericCreditsEntryBox(
|
||||
: giftToChannelCanTransfer
|
||||
? tr::lng_action_gift_channel_about
|
||||
: tr::lng_action_gift_got_stars_text)
|
||||
: tr::lng_gift_got_stars)(
|
||||
: (giftToChannel
|
||||
? tr::lng_gift_channel_got
|
||||
: tr::lng_gift_got_stars))(
|
||||
lt_count,
|
||||
rpl::single(e.starsConverted * 1.),
|
||||
Ui::Text::RichLangValue),
|
||||
|
||||
Reference in New Issue
Block a user