Move the NEW badge to gifts (market).

This commit is contained in:
John Preston 2025-07-14 11:29:48 +04:00
parent a285c1abec
commit 0132436dc8

View file

@ -805,7 +805,6 @@ void SetupPremium(
button->addClickHandler([=] { button->addClickHandler([=] {
showOther(BusinessId()); showOther(BusinessId());
}); });
Ui::NewBadge::AddToRight(button);
if (controller->session().premiumCanBuy()) { if (controller->session().premiumCanBuy()) {
const auto button = AddButtonWithIcon( const auto button = AddButtonWithIcon(
@ -814,6 +813,8 @@ void SetupPremium(
st::settingsButton, st::settingsButton,
{ .icon = &st::menuIconGiftPremium } { .icon = &st::menuIconGiftPremium }
); );
Ui::NewBadge::AddToRight(button);
button->addClickHandler([=] { button->addClickHandler([=] {
Ui::ChooseStarGiftRecipient(controller); Ui::ChooseStarGiftRecipient(controller);
}); });