tdweb: language_pack_database support
GitOrigin-RevId: e640392ab2e2c0c105d26deee0cb4fa5fed71802
This commit is contained in:
parent
6cc83f025f
commit
fc3717109d
@ -404,6 +404,15 @@ class TdClient {
|
|||||||
this.client = this.td_functions.td_create();
|
this.client = this.td_functions.td_create();
|
||||||
|
|
||||||
this.savingFiles = new Map();
|
this.savingFiles = new Map();
|
||||||
|
this.send({
|
||||||
|
'@type': 'setOption',
|
||||||
|
name: 'language_pack_database_path'
|
||||||
|
value: {
|
||||||
|
'@type': 'optionValueString',
|
||||||
|
value: this.tdfs.dbFileSystem.root + '/language'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
this.flushPendingQueries();
|
this.flushPendingQueries();
|
||||||
|
|
||||||
this.receive();
|
this.receive();
|
||||||
@ -431,6 +440,9 @@ class TdClient {
|
|||||||
query.parameters.database_directory = this.tdfs.dbFileSystem.root;
|
query.parameters.database_directory = this.tdfs.dbFileSystem.root;
|
||||||
query.parameters.files_directory = this.tdfs.inboundFileSystem.root;
|
query.parameters.files_directory = this.tdfs.inboundFileSystem.root;
|
||||||
}
|
}
|
||||||
|
if (query['@type'] === 'getLanguagePackString') {
|
||||||
|
query.language_pack_database_path = this.tdfs.dbFileSystem.root + '/language';
|
||||||
|
}
|
||||||
return this.prepareQueryRecursive(query);
|
return this.prepareQueryRecursive(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user