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

Improve gift convert confirmation.

This commit is contained in:
John Preston
2024-10-14 18:31:35 +04:00
parent 36de2b6ca6
commit 9166acbbb9
4 changed files with 60 additions and 22 deletions

View File

@@ -42,6 +42,12 @@ int AppConfig::quoteLengthMax() const {
return get<int>(u"quote_length_max"_q, 1024);
}
int AppConfig::stargiftConvertPeriodMax() const {
return get<int>(
u"stargifts_convert_period_max"_q,
_account->mtp().isTestMode() ? 300 : (90 * 86400));
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {