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) {

View File

@@ -82,6 +82,8 @@ public:
[[nodiscard]] int giftResalePriceMin() const;
[[nodiscard]] int giftResaleReceiveThousandths() const;
[[nodiscard]] int pollOptionsLimit() const;
void refresh(bool force = false);
private: