2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Added initial support for increased premium count of accounts.

This commit is contained in:
23rd
2022-05-31 15:32:41 +03:00
committed by John Preston
parent 78246aada7
commit 35e4dd5968
5 changed files with 24 additions and 7 deletions

View File

@@ -326,7 +326,7 @@ void FillMenu(
&st::menuIconCancel);
} else {
const auto &list = Core::App().domain().accounts();
if (list.size() < ::Main::Domain::kMaxAccounts) {
if (list.size() < Core::App().domain().maxAccounts()) {
addAction(tr::lng_menu_add_account(tr::now), [=] {
Core::App().domain().addActivated(MTP::Environment{});
}, &st::menuIconAddAccount);