tg2sip/buildenv/tdlib_header.patch

20 lines
770 B
Diff
Raw Normal View History

2018-10-04 07:07:36 +00:00
diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp
index 0cbcde9c..50e05ffa 100644
2018-10-04 07:07:36 +00:00
--- a/td/telegram/Td.cpp
+++ b/td/telegram/Td.cpp
@@ -4419,10 +4419,10 @@ Status Td::set_parameters(td_api::object_ptr<td_api::tdlibParameters> parameters
2020-07-25 10:46:31 +00:00
if (options_.application_version.empty()) {
2018-10-04 07:07:36 +00:00
return Status::Error(400, "Application version must be non-empty");
}
2020-07-25 10:46:31 +00:00
- if (options_.api_id != 21724) {
- options_.application_version += ", TDLib ";
- options_.application_version += TDLIB_VERSION;
2018-10-04 07:07:36 +00:00
- }
2020-07-25 10:46:31 +00:00
+ // if (options_.api_id != 21724) {
+ // options_.application_version += ", TDLib ";
+ // options_.application_version += TDLIB_VERSION;
2018-10-04 07:07:36 +00:00
+ // }
options_.language_pack = string();
options_.language_code = string();
options_.parameters = string();