Load last chat messages if there are no known messages in the chat.

This commit is contained in:
levlam 2023-07-06 01:09:32 +03:00
parent a8c1b24318
commit 6ded199729

View File

@ -37336,6 +37336,7 @@ void MessagesManager::update_dialog_pos(Dialog *d, const char *source, bool need
if (new_order == DEFAULT_ORDER && !d->is_empty) {
LOG(INFO) << "There are no known messages in the chat, just leave it where it is";
new_order = d->order;
get_history_from_the_end_impl(d, true, false, Promise<Unit>(), source);
}
}