2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 08:25:38 +00:00

Respect the maximum quote length.

This commit is contained in:
John Preston
2024-09-30 14:45:55 +04:00
parent 86c04424f6
commit 57438867b6
6 changed files with 26 additions and 2 deletions

View File

@@ -38,6 +38,10 @@ void AppConfig::start() {
}, _lifetime);
}
int AppConfig::quoteLengthMax() const {
return get<int>(u"quote_length_max"_q, 1024);
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {