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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user