Simplify discussed message preloading.
This commit is contained in:
parent
48f623f132
commit
3cd1489eab
@ -32360,12 +32360,11 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
|
|||||||
|
|
||||||
Message *top_m = get_message(d, message->top_thread_message_id);
|
Message *top_m = get_message(d, message->top_thread_message_id);
|
||||||
CHECK(top_m != nullptr);
|
CHECK(top_m != nullptr);
|
||||||
if (is_active_message_reply_info(dialog_id, top_m->reply_info) && is_discussion_message(dialog_id, top_m) &&
|
if (is_active_message_reply_info(dialog_id, top_m->reply_info) && is_discussion_message(dialog_id, top_m)) {
|
||||||
have_message_force({top_m->forward_info->from_dialog_id, top_m->forward_info->from_message_id},
|
FullMessageId top_full_message_id{top_m->forward_info->from_dialog_id, top_m->forward_info->from_message_id};
|
||||||
"preload discussed message")) {
|
if (have_message_force(top_full_message_id, "preload discussed message")) {
|
||||||
LOG(INFO) << "Preloaded discussed "
|
LOG(INFO) << "Preloaded discussed " << top_full_message_id << " from database";
|
||||||
<< FullMessageId{top_m->forward_info->from_dialog_id, top_m->forward_info->from_message_id}
|
}
|
||||||
<< " from database";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user