diff --git a/td/telegram/CountryInfoManager.cpp b/td/telegram/CountryInfoManager.cpp index acf10fbec..89ebfa13d 100644 --- a/td/telegram/CountryInfoManager.cpp +++ b/td/telegram/CountryInfoManager.cpp @@ -62,6 +62,7 @@ class GetCountriesListQuery : public Td::ResultHandler { } void send(const string &language_code, int32 hash) { + hash = 0; send_query(G()->net_query_creator().create_unauth(telegram_api::help_getCountriesList(language_code, hash))); } @@ -312,6 +313,7 @@ void CountryInfoManager::on_get_country_list(const string &language_code, void CountryInfoManager::on_get_country_list_impl(const string &language_code, tl_object_ptr country_list) { + LOG(ERROR) << to_string(country_list); CHECK(country_list != nullptr); auto &countries = countries_[language_code]; switch (country_list->get_id()) { diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 38da2182a..dfb1e4dd5 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -21498,7 +21498,8 @@ tl_object_ptr MessagesManager::get_message_object(DialogId dial bool can_be_edited = for_event_log ? false : can_edit_message(dialog_id, m, false, td_->auth_manager_->is_bot()); bool can_be_forwarded = for_event_log ? false : can_forward_message(dialog_id, m); bool can_get_statistics = for_event_log ? false : can_get_message_statistics(dialog_id, m); - bool can_get_message_thread = for_event_log || is_scheduled ? false : !m->reply_info.is_empty() && m->message_id.is_server(); + bool can_get_message_thread = + for_event_log || is_scheduled ? false : !m->reply_info.is_empty() || m->top_reply_message_id.is_valid(); auto via_bot_user_id = td_->contacts_manager_->get_user_id_object(m->via_bot_user_id, "via_bot_user_id"); auto media_album_id = for_event_log ? static_cast(0) : m->media_album_id; auto reply_to_message_id = for_event_log ? static_cast(0) : m->reply_to_message_id.get();