Ignore failed to load chats in getChatFilter.

GitOrigin-RevId: 5c1871080e56576f402917e1ecfbf0c99da0deba
This commit is contained in:
levlam 2020-10-31 16:43:26 +03:00
parent 778adce53d
commit ed0bf2c1b3

View File

@ -14805,13 +14805,9 @@ void MessagesManager::load_dialog_filter(const DialogFilter *filter, bool force,
if (!input_dialog_ids.empty() && !force) {
const size_t MAX_SLICE_SIZE = 100;
if (input_dialog_ids.size() <= MAX_SLICE_SIZE) {
td_->create_handler<GetDialogsQuery>(std::move(promise))->send(std::move(input_dialog_ids));
return;
}
MultiPromiseActorSafe mpas{"GetFilterDialogsFromServerMultiPromiseActor"};
mpas.add_promise(std::move(promise));
mpas.set_ignore_errors(true);
auto lock = mpas.get_promise();
for (size_t i = 0; i < input_dialog_ids.size(); i += MAX_SLICE_SIZE) {