Don't set have_next to true if all next messages were deleted.

This commit is contained in:
levlam 2021-07-30 17:50:28 +03:00
parent 93ac629a74
commit 5171d793d0

View File

@ -9386,9 +9386,11 @@ void MessagesManager::on_get_history(DialogId dialog_id, MessageId from_message_
}
}
if (!message_ids.empty()) {
have_next = true;
}
}
}
for (auto &message : messages) {
if (!have_next && from_the_end && get_message_id(message, false) < d->last_message_id) {