2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add ability to create todo lists.

This commit is contained in:
John Preston
2025-06-10 18:16:48 +04:00
parent a97d1b8669
commit 5666e84d92
17 changed files with 1365 additions and 111 deletions

View File

@@ -145,9 +145,21 @@ int AppConfig::giftResaleReceiveThousandths() const {
}
int AppConfig::pollOptionsLimit() const {
return get<int>(u"poll_answers_max"_q, 12);
}
int AppConfig::todoListItemsLimit() const {
return get<int>(
u"poll_answers_max"_q,
_account->mtp().isTestMode() ? 12 : 10);
u"todo_items_max"_q,
_account->mtp().isTestMode() ? 10 : 30);
}
int AppConfig::todoListTitleLimit() const {
return get<int>(u"todo_title_length_max"_q, 32);
}
int AppConfig::todoListItemTextLimit() const {
return get<int>(u"todo_item_length_max"_q, 64);
}
void AppConfig::refresh(bool force) {