Improve can_get_message_thread flag.
GitOrigin-RevId: 29d2e2870839407b446c435f6a24dc63bc535dbc
This commit is contained in:
parent
7aff2571f8
commit
e294921d5f
@ -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<telegram_api::help_CountriesList> country_list) {
|
||||
LOG(ERROR) << to_string(country_list);
|
||||
CHECK(country_list != nullptr);
|
||||
auto &countries = countries_[language_code];
|
||||
switch (country_list->get_id()) {
|
||||
|
@ -21498,7 +21498,8 @@ tl_object_ptr<td_api::message> 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<int64>(0) : m->media_album_id;
|
||||
auto reply_to_message_id = for_event_log ? static_cast<int64>(0) : m->reply_to_message_id.get();
|
||||
|
Loading…
Reference in New Issue
Block a user