From 155f4ea252610a7a7160ae8493bb04f398f938db Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 12 Aug 2024 10:56:34 +0200 Subject: [PATCH] Fix build on Windows. --- Telegram/SourceFiles/settings/settings_credits_graphics.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp index 0a32d3f9a..fe9630bf9 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp @@ -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) {