mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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
|
||||
? tr::lng_credits_subscription_on_button()
|
||||
: tr::lng_box_ok());
|
||||
|
||||
using Flag = MTPpayments_ChangeStarsSubscription::Flag;
|
||||
const auto send = [=, weak = Ui::MakeWeak(box)] {
|
||||
if (toRenew && s.expired) {
|
||||
Api::CheckChatInvite(controller, s.inviteHash, nullptr, [=] {
|
||||
if (const auto strong = weak.get()) {
|
||||
if (const auto strong = weak.data()) {
|
||||
strong->closeBox();
|
||||
}
|
||||
});
|
||||
|
@ -864,7 +863,7 @@ void ReceiptCreditsBox(
|
|||
MTP_bool(toCancel)
|
||||
)).done([=] {
|
||||
state->confirmButtonBusy = false;
|
||||
if (const auto strong = weak.get()) {
|
||||
if (const auto strong = weak.data()) {
|
||||
strong->closeBox();
|
||||
}
|
||||
}).fail([=, show = box->uiShow()](const MTP::Error &error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue