From 0824764b7980b9f5a022285d170525c22af9ce0e Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 12 Aug 2023 21:53:02 +0300 Subject: [PATCH] Remove "archive_all_stories" option. --- td/telegram/ConfigManager.cpp | 3 ++- td/telegram/OptionManager.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index 899ca844b..5830cd4c2 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -2062,7 +2062,8 @@ void ConfigManager::process_app_config(tl_object_ptr &c } if (!options.get_option_boolean("need_synchronize_archive_all_stories")) { - options.set_option_boolean("archive_all_stories", archive_all_stories); + // options.set_option_boolean("archive_all_stories", archive_all_stories); + options.set_option_empty("archive_all_stories"); } options.set_option_integer("stickers_premium_by_emoji_num", stickers_premium_by_emoji_num); diff --git a/td/telegram/OptionManager.cpp b/td/telegram/OptionManager.cpp index d8b59a4ef..99f261725 100644 --- a/td/telegram/OptionManager.cpp +++ b/td/telegram/OptionManager.cpp @@ -116,7 +116,7 @@ OptionManager::OptionManager(Td *td) set_option_integer("pinned_forum_topic_count_max", G()->is_test_dc() ? 3 : 5); } if (!have_option("archive_all_stories")) { - set_option_boolean("archive_all_stories", false); + // set_option_boolean("archive_all_stories", false); } set_option_empty("archive_and_mute_new_chats_from_unknown_users"); @@ -631,10 +631,12 @@ void OptionManager::set_option(const string &name, td_api::object_ptr