Do not get history in being added dialog.
GitOrigin-RevId: 06746812288030ab96c46e971e5d335024eaa64e
This commit is contained in:
parent
c204fd6256
commit
ef9d8415f3
@ -28376,8 +28376,8 @@ void MessagesManager::fix_new_dialog(Dialog *d, unique_ptr<Message> &&last_datab
|
|||||||
}
|
}
|
||||||
|
|
||||||
// must be after update_dialog_pos, because use d->order
|
// must be after update_dialog_pos, because use d->order
|
||||||
if (need_get_history && !td_->auth_manager_->is_bot() && have_input_peer(dialog_id, AccessRights::Read) &&
|
if (need_get_history && !td_->auth_manager_->is_bot() && dialog_id != being_added_dialog_id_ &&
|
||||||
(d->order != DEFAULT_ORDER || is_dialog_sponsored(d))) {
|
have_input_peer(dialog_id, AccessRights::Read) && (d->order != DEFAULT_ORDER || is_dialog_sponsored(d))) {
|
||||||
get_history_from_the_end(dialog_id, true, false, Auto());
|
get_history_from_the_end(dialog_id, true, false, Auto());
|
||||||
}
|
}
|
||||||
if (d->need_repair_server_unread_count && need_unread_counter(d->order)) {
|
if (d->need_repair_server_unread_count && need_unread_counter(d->order)) {
|
||||||
|
Reference in New Issue
Block a user