Use a separate title for star gift recipient box.

This commit is contained in:
John Preston 2024-10-02 13:12:07 +04:00
parent cf1d274b0d
commit 42dd08ace5
2 changed files with 5 additions and 2 deletions

View file

@ -2999,6 +2999,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_gift_stars_incoming" = "Use Stars to unlock content and services on Telegram.";
"lng_gift_until" = "Until";
"lng_gift_premium_or_stars" = "Gift Premium or Stars";
"lng_gift_premium_subtitle" = "Gift Premium";
"lng_gift_premium_about" = "Give {name} access to exclusive features with Telegram Premium. {features}";
"lng_gift_premium_features" = "See Features >";

View file

@ -258,7 +258,9 @@ PreviewWrap::PreviewWrap(
prepare(std::move(details));
}
void ShowSentToast(not_null<Window::SessionController*> window, GiftTypeStars gift) {
void ShowSentToast(
not_null<Window::SessionController*> window,
GiftTypeStars gift) {
const auto &st = st::historyPremiumToast;
const auto skip = st.padding.top();
const auto size = st.style.font->height * 2;
@ -1285,7 +1287,7 @@ void ChooseStarGiftRecipient(
};
auto initBox = [=](not_null<PeerListBox*> peersBox) {
peersBox->setTitle(tr::lng_credits_gift_title());
peersBox->setTitle(tr::lng_gift_premium_or_stars());
peersBox->addButton(tr::lng_cancel(), [=] { peersBox->closeBox(); });
};