2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Support polls with 12 options.

This commit is contained in:
John Preston
2025-05-27 18:31:47 +04:00
parent d7c964afc5
commit 2a153214f6
4 changed files with 16 additions and 4 deletions

View File

@@ -140,6 +140,12 @@ int AppConfig::giftResaleReceiveThousandths() const {
return get<int>(u"stars_stargift_resale_commission_permille"_q, 800);
}
int AppConfig::pollOptionsLimit() const {
return get<int>(
u"poll_answers_max"_q,
_account->mtp().isTestMode() ? 12 : 10);
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {