From 3043421464dac37ba122db567fcc4c317ca6faea Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 15 Dec 2021 23:20:29 +0300 Subject: [PATCH] Make "session_count" option internal. --- td/telegram/Td.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 01f58eb7f..28b12aa84 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -3267,7 +3267,7 @@ bool Td::is_internal_config_option(Slice name) { return name == "revoke_pm_inbox" || name == "revoke_time_limit" || name == "revoke_pm_time_limit" || name == "rating_e_decay" || name == "recent_stickers_limit"; case 's': - return name == "saved_animations_limit"; + return name == "saved_animations_limit" || name == "session_count"; case 'v': return name == "video_note_size_max"; case 'w': @@ -7641,9 +7641,6 @@ void Td::on_request(uint64 id, td_api::setOption &request) { } break; case 's': - if (set_integer_option("session_count", 0, 50)) { - return; - } if (set_integer_option("storage_max_files_size")) { return; }