Added api support for max count of passkeys for accounts.

This commit is contained in:
23rd
2025-12-03 06:09:34 +03:00
committed by John Preston
parent e7c1073e13
commit 1053b30a6d
5 changed files with 30 additions and 10 deletions

View File

@@ -263,6 +263,10 @@ TimeId AppConfig::groupCallMessageTTL() const {
return get<int>(u"group_call_message_ttl"_q, 10);
}
int AppConfig::passkeysAccountPasskeysMax() const {
return get<int>(u"passkeys_account_passkeys_max"_q, 10);
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {

View File

@@ -123,6 +123,8 @@ public:
[[nodiscard]] int groupCallMessageLengthLimit() const;
[[nodiscard]] TimeId groupCallMessageTTL() const;
[[nodiscard]] int passkeysAccountPasskeysMax() const;
using StarsColoring = Calls::Group::Ui::StarsColoring;
[[nodiscard]] std::vector<StarsColoring> groupCallColorings() const;