Fixed ability to process of credits payment with good credits balance.

Regression was introduced: ae851b8733.
This commit is contained in:
23rd
2026-01-30 10:18:37 +03:00
parent 54683b2d21
commit 527e742a89
@@ -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);