Fixed ability to renew credits subscription.

This commit is contained in:
23rd 2025-04-13 12:32:16 +03:00 committed by John Preston
parent 69e7c27fd0
commit 5886a07300

View file

@ -1871,7 +1871,7 @@ void GenericCreditsEntryBox(
: tr::lng_gift_show_on_page)()
: tr::lng_box_ok()));
const auto send = [=, weak = Ui::MakeWeak(box)] {
if (toRejoin) {
if (toRejoin && !toRenew) {
if (const auto window = show->resolveWindow()) {
const auto finish = [=](Payments::CheckoutResult&&) {
ProcessReceivedSubscriptions(weak, session);