From d4dc4f2a50f39b1c05efd955a6e9de0db2b197bc Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 29 Jul 2021 13:02:38 +0300 Subject: [PATCH] Fix value check. --- td/telegram/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index f7d9912a279e..028033b76129 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -1690,7 +1690,7 @@ void ConfigManager::process_app_config(tl_object_ptr &c if (video_note_setting->value_->get_id() == telegram_api::jsonNumber::ID) { auto setting_value = static_cast( static_cast(video_note_setting->value_.get())->value_); - if (value > 0) { + if (setting_value > 0) { if (video_note_setting->key_ == "diameter") { G()->shared_config().set_option_integer("suggested_video_note_length", setting_value); }