Support language_pack in MTProto header.
GitOrigin-RevId: 75238791e517694bb3f430973e0d2556127f6bdd
This commit is contained in:
parent
9c8a6f9c65
commit
9575ed5fbd
@ -47,8 +47,17 @@ class HeaderStorer {
|
||||
}
|
||||
store(options.application_version, storer);
|
||||
store(options.system_language_code, storer);
|
||||
store(string(), storer);
|
||||
store(string(), storer);
|
||||
if (is_anonymous || options.language_pack.empty()) {
|
||||
store(Slice(), storer);
|
||||
store(Slice(), storer);
|
||||
} else {
|
||||
store(options.language_pack, storer);
|
||||
if (options.language_code.empty()) {
|
||||
store(Slice("en"), storer);
|
||||
} else {
|
||||
store(options.language_code, storer);
|
||||
}
|
||||
}
|
||||
if (have_proxy) {
|
||||
// inputClientProxy#75588b3f address:string port:int = InputClientProxy;
|
||||
store(static_cast<int32>(0x75588b3f), storer);
|
||||
|
Loading…
Reference in New Issue
Block a user