Fix last_added_message_id.
This commit is contained in:
parent
16d454793c
commit
39cee43b9f
@ -24479,7 +24479,7 @@ void MessagesManager::on_get_history_from_database(DialogId dialog_id, MessageId
|
|||||||
&need_update_dialog_pos, "on_get_history_from_database");
|
&need_update_dialog_pos, "on_get_history_from_database");
|
||||||
if (m != nullptr) {
|
if (m != nullptr) {
|
||||||
first_added_message_id = m->message_id;
|
first_added_message_id = m->message_id;
|
||||||
if (!have_next) {
|
if (!last_added_message_id.is_valid()) {
|
||||||
last_added_message_id = m->message_id;
|
last_added_message_id = m->message_id;
|
||||||
}
|
}
|
||||||
if (old_message == nullptr) {
|
if (old_message == nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user