2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support tg://stars_topup links.

This commit is contained in:
John Preston
2024-08-14 16:47:39 +02:00
parent 80b3754be1
commit eec9c8a46b
8 changed files with 97 additions and 6 deletions

View File

@@ -310,7 +310,8 @@ void ConfirmSubscriptionBox(
state->loading.force_assign(true);
const auto done = [=](Settings::SmallBalanceResult result) {
if (result == Settings::SmallBalanceResult::Success) {
if (result == Settings::SmallBalanceResult::Success
|| result == Settings::SmallBalanceResult::Already) {
sendCredits();
} else {
state->api = std::nullopt;