Don't set have_next to true if all next messages were deleted.
This commit is contained in:
parent
93ac629a74
commit
5171d793d0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user