mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fixed display of max accounts in box for premium doubled limits.
This commit is contained in:
parent
7b00671ccf
commit
2f1286a05e
1 changed files with 3 additions and 3 deletions
|
@ -1765,10 +1765,10 @@ void DoubledLimitsPreviewBox(
|
|||
premium,
|
||||
});
|
||||
}
|
||||
const auto now = session->domain().accounts().size();
|
||||
const auto till = (now + 1 >= Main::Domain::kPremiumMaxAccounts)
|
||||
const auto nextMax = session->domain().maxAccounts() + 1;
|
||||
const auto till = (nextMax >= Main::Domain::kPremiumMaxAccounts)
|
||||
? QString::number(Main::Domain::kPremiumMaxAccounts)
|
||||
: (QString::number(now + 1) + QChar('+'));
|
||||
: (QString::number(nextMax) + QChar('+'));
|
||||
entries.push_back(Ui::Premium::ListEntry{
|
||||
tr::lng_premium_double_limits_subtitle_accounts(),
|
||||
tr::lng_premium_double_limits_about_accounts(
|
||||
|
|
Loading…
Add table
Reference in a new issue