mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed redundant argument from ReceiptCreditsBox.
This commit is contained in:
@@ -357,7 +357,6 @@ void InnerWidget::fillHistory() {
|
||||
controller->uiShow()->show(Box(
|
||||
::Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
premiumBot.get(),
|
||||
e));
|
||||
};
|
||||
|
||||
|
||||
@@ -1408,7 +1408,6 @@ void InnerWidget::fill() {
|
||||
show->show(Box(
|
||||
::Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
premiumBot.get(),
|
||||
e));
|
||||
};
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ void ProcessCreditsReceipt(
|
||||
controller->uiShow()->show(Box(
|
||||
Settings::ReceiptCreditsBox,
|
||||
controller,
|
||||
nullptr,
|
||||
entry));
|
||||
controller->window().activate();
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user