Fix chat list perloading in get_dialog_notification_settings_exceptions.

GitOrigin-RevId: b4dcf2a1ab0a021acbe976d821668cbdc6bdccbd
This commit is contained in:
levlam 2019-03-11 15:09:55 +03:00
parent 438d39e4de
commit c4d114a70c

View File

@ -13175,8 +13175,8 @@ vector<DialogId> MessagesManager::get_dialog_notification_settings_exceptions(No
return result;
}
if (ordered_dialogs_.size() < MAX_PRELOADED_DIALOGS) {
preload_dialog_list(static_cast<void *>(this));
if (G()->parameters().use_message_db && last_loaded_database_dialog_date_ < last_database_server_dialog_date_) {
load_dialog_list(MAX_GET_DIALOGS, Auto());
}
td_->create_handler<GetNotifySettingsExceptionsQuery>(std::move(promise))->send(scope, filter_scope, compare_sound);