diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index f7d9912a2..028033b76 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); }