Fix setting store_all_files_in_files_directory option.
GitOrigin-RevId: 3eecd1b8447c62df92829a7ce0586a2a6b93c090
This commit is contained in:
parent
84695437d3
commit
7fdd8c5139
@ -4278,6 +4278,8 @@ Status Td::init(DbKey key) {
|
|||||||
options_.is_emulator = G()->shared_config().get_option_boolean("is_emulator");
|
options_.is_emulator = G()->shared_config().get_option_boolean("is_emulator");
|
||||||
// options_.proxy = Proxy();
|
// options_.proxy = Proxy();
|
||||||
G()->set_mtproto_header(make_unique<MtprotoHeader>(options_));
|
G()->set_mtproto_header(make_unique<MtprotoHeader>(options_));
|
||||||
|
G()->set_store_all_files_in_files_directory(
|
||||||
|
G()->shared_config().get_option_boolean("store_all_files_in_files_directory"));
|
||||||
|
|
||||||
VLOG(td_init) << "Create NetQueryDispatcher";
|
VLOG(td_init) << "Create NetQueryDispatcher";
|
||||||
auto net_query_dispatcher = make_unique<NetQueryDispatcher>([&] { return create_reference(); });
|
auto net_query_dispatcher = make_unique<NetQueryDispatcher>([&] { return create_reference(); });
|
||||||
@ -6959,8 +6961,6 @@ void Td::on_request(uint64 id, td_api::setOption &request) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (set_boolean_option("store_all_files_in_files_directory")) {
|
if (set_boolean_option("store_all_files_in_files_directory")) {
|
||||||
bool value = static_cast<const td_api::optionValueBoolean *>(request.value_.get())->value_;
|
|
||||||
G()->set_store_all_files_in_files_directory(value);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user