mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on Windows.
This commit is contained in:
parent
f6c071bd18
commit
155f4ea252
1 changed files with 2 additions and 3 deletions
|
@ -846,12 +846,11 @@ void ReceiptCreditsBox(
|
||||||
: toCancel
|
: toCancel
|
||||||
? tr::lng_credits_subscription_on_button()
|
? tr::lng_credits_subscription_on_button()
|
||||||
: tr::lng_box_ok());
|
: tr::lng_box_ok());
|
||||||
|
|
||||||
using Flag = MTPpayments_ChangeStarsSubscription::Flag;
|
using Flag = MTPpayments_ChangeStarsSubscription::Flag;
|
||||||
const auto send = [=, weak = Ui::MakeWeak(box)] {
|
const auto send = [=, weak = Ui::MakeWeak(box)] {
|
||||||
if (toRenew && s.expired) {
|
if (toRenew && s.expired) {
|
||||||
Api::CheckChatInvite(controller, s.inviteHash, nullptr, [=] {
|
Api::CheckChatInvite(controller, s.inviteHash, nullptr, [=] {
|
||||||
if (const auto strong = weak.get()) {
|
if (const auto strong = weak.data()) {
|
||||||
strong->closeBox();
|
strong->closeBox();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -864,7 +863,7 @@ void ReceiptCreditsBox(
|
||||||
MTP_bool(toCancel)
|
MTP_bool(toCancel)
|
||||||
)).done([=] {
|
)).done([=] {
|
||||||
state->confirmButtonBusy = false;
|
state->confirmButtonBusy = false;
|
||||||
if (const auto strong = weak.get()) {
|
if (const auto strong = weak.data()) {
|
||||||
strong->closeBox();
|
strong->closeBox();
|
||||||
}
|
}
|
||||||
}).fail([=, show = box->uiShow()](const MTP::Error &error) {
|
}).fail([=, show = box->uiShow()](const MTP::Error &error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue