From 527e742a892f93ea694e6f481894de8d3bee0825 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 30 Jan 2026 10:18:37 +0300 Subject: [PATCH] Fixed ability to process of credits payment with good credits balance. Regression was introduced: ae851b8733. --- Telegram/SourceFiles/boxes/send_credits_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/send_credits_box.cpp b/Telegram/SourceFiles/boxes/send_credits_box.cpp index 0aac8371c6..b3b237c079 100644 --- a/Telegram/SourceFiles/boxes/send_credits_box.cpp +++ b/Telegram/SourceFiles/boxes/send_credits_box.cpp @@ -437,14 +437,14 @@ void SendCreditsBox( }; const auto button = box->addButton(rpl::single(QString()), [=] { - const auto weak = base::make_weak(box.get()); Settings::MaybeRequestBalanceIncrease( Main::MakeSessionShow(box->uiShow(), session), form->invoice.credits, SmallBalanceSourceFromForm(form), [=](Settings::SmallBalanceResult result) { if (result == Settings::SmallBalanceResult::Cancelled) { - } else if (result == Settings::SmallBalanceResult::Success) { + } else if (result == Settings::SmallBalanceResult::Success + || result == Settings::SmallBalanceResult::Already) { sendStars(); } else { sent(result);