Ignore dialog dates with 0 date.
This commit is contained in:
parent
7ed5534c83
commit
9cf4851c5b
@ -14685,7 +14685,7 @@ void MessagesManager::on_get_dialogs(FolderId folder_id, vector<tl_object_ptr<te
|
||||
DialogDate dialog_date = it->second;
|
||||
CHECK(dialog_date.get_dialog_id() == dialog_id);
|
||||
|
||||
if (max_dialog_date < dialog_date) {
|
||||
if (dialog_date.get_date() > 0 && max_dialog_date < dialog_date) {
|
||||
max_dialog_date = dialog_date;
|
||||
}
|
||||
} else {
|
||||
@ -16035,7 +16035,7 @@ void MessagesManager::load_folder_dialog_list(FolderId folder_id, int32 limit, b
|
||||
}
|
||||
return;
|
||||
}
|
||||
LOG(INFO) << "Load dialog list in " << folder_id << " with limit " << limit;
|
||||
LOG(INFO) << "Load chat list in " << folder_id << " with limit " << limit;
|
||||
multipromise.add_promise(PromiseCreator::lambda([actor_id = actor_id(this), folder_id](Result<Unit> result) {
|
||||
send_closure_later(actor_id, &MessagesManager::on_load_folder_dialog_list, folder_id, std::move(result));
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user