Removed redundant argument from ReceiptCreditsBox.

This commit is contained in:
23rd 2024-08-09 23:22:54 +03:00 committed by John Preston
parent f2f85a9083
commit 4760337958
6 changed files with 1 additions and 9 deletions

View file

@ -357,7 +357,6 @@ void InnerWidget::fillHistory() {
controller->uiShow()->show(Box( controller->uiShow()->show(Box(
::Settings::ReceiptCreditsBox, ::Settings::ReceiptCreditsBox,
controller, controller,
premiumBot.get(),
e)); e));
}; };

View file

@ -1408,7 +1408,6 @@ void InnerWidget::fill() {
show->show(Box( show->show(Box(
::Settings::ReceiptCreditsBox, ::Settings::ReceiptCreditsBox,
controller, controller,
premiumBot.get(),
e)); e));
}; };

View file

@ -102,7 +102,6 @@ void ProcessCreditsReceipt(
controller->uiShow()->show(Box( controller->uiShow()->show(Box(
Settings::ReceiptCreditsBox, Settings::ReceiptCreditsBox,
controller, controller,
nullptr,
entry)); entry));
controller->window().activate(); controller->window().activate();
} }

View file

@ -154,7 +154,6 @@ void Credits::setupSubscriptions(not_null<Ui::VerticalLayout*> container) {
controller->uiShow()->show(Box( controller->uiShow()->show(Box(
ReceiptCreditsBox, ReceiptCreditsBox,
controller, controller,
nullptr,
e)); e));
}; };
@ -285,7 +284,6 @@ void Credits::setupHistory(not_null<Ui::VerticalLayout*> container) {
controller->uiShow()->show(Box( controller->uiShow()->show(Box(
ReceiptCreditsBox, ReceiptCreditsBox,
controller, controller,
premiumBot.get(),
e)); e));
}; };

View file

@ -440,7 +440,6 @@ not_null<Ui::RpWidget*> AddBalanceWidget(
void ReceiptCreditsBox( void ReceiptCreditsBox(
not_null<Ui::GenericBox*> box, not_null<Ui::GenericBox*> box,
not_null<Window::SessionController*> controller, not_null<Window::SessionController*> controller,
PeerData *premiumBot,
const Data::CreditsHistoryEntry &e) { const Data::CreditsHistoryEntry &e) {
box->setStyle(st::giveawayGiftCodeBox); box->setStyle(st::giveawayGiftCodeBox);
box->setNoContentMargin(true); box->setNoContentMargin(true);
@ -771,7 +770,7 @@ void GiftedCreditsBox(
const auto anonymous = from->isServiceUser(); const auto anonymous = from->isServiceUser();
const auto peer = received ? from : to; const auto peer = received ? from : to;
using PeerType = Data::CreditsHistoryEntry::PeerType; using PeerType = Data::CreditsHistoryEntry::PeerType;
Settings::ReceiptCreditsBox(box, controller, nullptr, { Settings::ReceiptCreditsBox(box, controller, {
.id = QString(), .id = QString(),
.title = (received .title = (received
? tr::lng_credits_box_history_entry_gift_name ? tr::lng_credits_box_history_entry_gift_name
@ -809,7 +808,6 @@ void ShowRefundInfoBox(
controller->show(Box( controller->show(Box(
::Settings::ReceiptCreditsBox, ::Settings::ReceiptCreditsBox,
controller, controller,
nullptr, // premiumBot
info)); info));
} }

View file

@ -57,7 +57,6 @@ void AddWithdrawalWidget(
void ReceiptCreditsBox( void ReceiptCreditsBox(
not_null<Ui::GenericBox*> box, not_null<Ui::GenericBox*> box,
not_null<Window::SessionController*> controller, not_null<Window::SessionController*> controller,
PeerData *premiumBot,
const Data::CreditsHistoryEntry &e); const Data::CreditsHistoryEntry &e);
void GiftedCreditsBox( void GiftedCreditsBox(
not_null<Ui::GenericBox*> box, not_null<Ui::GenericBox*> box,