Commit Graph

72 Commits

Author SHA1 Message Date
levlam
33073a5022 Add td_api::updateSpeedLimitNotification. 2024-04-08 20:18:48 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
9289270cd9 Close databases and binlog on another thread. 2023-10-05 21:50:53 +03:00
levlam
e6cd1989bf Fix Global initialization. 2023-07-26 21:37:54 +03:00
levlam
06731d965d Move get_database_scheduler_id to Global. 2023-07-26 13:05:34 +03:00
levlam
c9f83caf9f Reset server time difference after a "MessageId is too high" error. 2023-05-14 21:58:54 +03:00
levlam
d6faa001e2 Add Global::use_sqlite_pmc. 2023-03-14 01:41:04 +03:00
levlam
47c4d50907 Add TdDb::Parameters. 2023-03-13 22:29:56 +03:00
levlam
367d3eaa2b Move ignore_background_updates() to Td. 2023-03-13 21:13:59 +03:00
levlam
0f45b3bd6e Don't clean TdParameters on closing. 2023-03-13 15:54:05 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
bece21cc38 Make OptionManager a plain class. 2022-08-18 18:52:59 +03:00
levlam
149d505781 Move option-related functions to OptionManager. 2022-08-18 14:54:57 +03:00
levlam
12abea736f Init base LanguagePackManager fields in constuctor. 2022-08-17 22:49:05 +03:00
levlam
f9161dccc3 Remove "auth" internal option. 2022-08-17 20:01:03 +03:00
levlam
2ebeca31ca Don't use shared_config directly in Global.cpp. 2022-08-17 19:43:00 +03:00
levlam
3318ffdb20 Proxy all option-related requests through G. 2022-08-17 16:11:13 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
d986c9bc27 Add option "chat_filter_chosen_chat_count_max". 2022-05-23 20:04:36 +03:00
levlam
fc6b1c0ea8 Enable back log out. 2022-05-03 16:31:58 +03:00
levlam
0d0b641ac6 Log out only if there is main auth key, but it isn't logged in. 2022-05-02 21:41:04 +03:00
levlam
d95b20b631 Try not to override "auth" option. 2022-05-02 21:20:39 +03:00
levlam
746816e7d7 Add Global::log_out helper. 2022-05-02 20:59:07 +03:00
levlam
877452f6ce Add Global::get_retry_after. 2022-04-12 16:12:22 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
d75f0a4e94 Move "unix_time" option handling to OptionManager. 2021-12-16 15:18:51 +03:00
levlam
48f623f132 Simpler and faster have_message_force. 2021-09-16 17:28:33 +03:00
levlam
70a76e333f Erase server_time_difference from binlog if time adjustment protection is disabled. 2021-06-04 17:18:59 +03:00
levlam
2e943a6c85 Fix misprint. 2021-02-19 16:37:44 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
187ebc603c Make function name unique.
GitOrigin-RevId: 2d8e805b36376e2c5f2a5630794ed9797254496c
2020-10-02 13:22:06 +03:00
levlam
75aac4dd46 Explicitly capture copied lambda parameters.
GitOrigin-RevId: 653e4c6b640a77bb757576d974906a30d0732a4a
2020-09-27 02:20:42 +03:00
levlam
1fe397e43d Make optionValueInteger value int64.
GitOrigin-RevId: 7da1c4f051691ff7df31627115a9a37e6c5d5802
2020-09-25 00:46:16 +03:00
Arseny Smirnov
cacabaf6d1 NetQueryStats
GitOrigin-RevId: 5a04b322e12e2838b1d7f812fcf06bff4eefbace
2020-07-30 17:28:56 +03:00
levlam
029ee5dd37 Add disable_time_adjustment_protection option.
GitOrigin-RevId: 3a23943b294e2efdabb6c8e0ff606a2c62c05573
2020-07-13 17:01:51 +03:00
levlam
d6404db146 Remove unneeded logging.
GitOrigin-RevId: 473cab6f91a53360e2a696cc50a48c018ce705c6
2020-05-04 21:52:15 +03:00
levlam
fd10b27847 Improve logging.
GitOrigin-RevId: d03e6ce64b2e88389f0e3df1ecfec4efb5711e75
2020-03-18 20:51:02 +03:00
levlam
a0bf46a4d8 Fix wrong saved legacy time_diff.
GitOrigin-RevId: 4ab3c37713c8d2b1d9f469cea4b13f0aab7558ac
2020-03-11 01:24:07 +03:00
levlam
c5f3b2223c Add more logging in to_unix_time.
GitOrigin-RevId: 1e191c31e4be4a29584844f27b098a21811daffd
2020-02-22 19:31:08 +03:00
levlam
c41640df44 Workaround MSVC 19.4 Internal Compiler Error.
GitOrigin-RevId: 8fcb018f353bbf1d68d2e0253d4472656d196845
2020-02-01 07:43:54 +03:00
levlam
1dfeb5d176 Fix updating server_time_diff.
GitOrigin-RevId: dfc1b558a4724a49daef145bc69f5a8f3d834124
2020-01-24 01:07:53 +03:00
levlam
53da415b5c Send updates for "unix_time" option.
GitOrigin-RevId: 08f48634a02602060d55b8b8628e20d7d2618381
2020-01-08 23:41:03 +03:00
levlam
fe28551d4c Do not allow time to go more than 1 year forward between restarts.
GitOrigin-RevId: 1240b52520431f62249364b718840b7e45c886c7
2020-01-06 04:23:59 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
1411f33725 Do not correct system time.
GitOrigin-RevId: e11cae3fc0ba1e5fe5548b14ba3f65e296a155a0
2019-12-30 00:02:12 +03:00
levlam
a1b67327b1 Safe conversion to unix time.
GitOrigin-RevId: cd851e5196ea43269e7e3ec52ac0df8093966c9a
2019-12-25 18:35:36 +03:00
levlam
bd559bf13a Fixes for system_time_saved_at_.
GitOrigin-RevId: 1effe236b00a00facfec0d6492bd60fe52faa737
2019-12-25 18:03:08 +03:00
levlam
41b09d9c31 Minor.
GitOrigin-RevId: 35d3f55ed770982dd62046f8f0c46d9139f93f27
2019-12-25 17:36:31 +03:00
levlam
935161c20e Rename save_system_time to save_server_time.
GitOrigin-RevId: 9ffc8414c74872c7807faa85071818a0993aca87
2019-12-25 16:57:18 +03:00