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(
::Settings::ReceiptCreditsBox,
controller,
premiumBot.get(),
e));
};

View file

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

View file

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

View file

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

View file

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

View file

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