Update WebPagesManager.cpp and cli.cpp

This commit is contained in:
Andrea Cavalli 2020-08-01 01:00:01 +02:00
parent f1bf08c1e6
commit ee676d0a52
2 changed files with 7 additions and 3 deletions

View File

@ -1203,6 +1203,9 @@ tl_object_ptr<td_api::webPage> WebPagesManager::get_web_page_object(WebPageId we
if (web_page == nullptr) {
return nullptr;
}
if (&web_page->url == nullptr) {
return nullptr;
}
int32 instant_view_version = [web_page] {
if (web_page->instant_view.is_empty) {
return 0;

View File

@ -400,9 +400,10 @@ class CliClient final : public Actor {
case td_api::authorizationStateWaitTdlibParameters::ID: {
auto parameters = td_api::make_object<td_api::tdlibParameters>();
parameters->use_test_dc_ = use_test_dc_;
parameters->use_message_database_ = true;
parameters->use_chat_info_database_ = true;
parameters->use_secret_chats_ = true;
parameters->use_message_database_ = false;
parameters->use_chat_info_database_ = false;
parameters->use_file_database_ = false;
parameters->use_secret_chats_ = false;
parameters->api_id_ = api_id_;
parameters->api_hash_ = api_hash_;
parameters->system_language_code_ = "en";