Commit Graph

9388 Commits

Author SHA1 Message Date
levlam
758ced943e Don't use Time::now_cached in Session. 2023-01-19 12:27:23 +03:00
levlam
ef4c3902fe Fix some warnings. 2023-01-18 22:42:01 +03:00
levlam
5b451f7e11 Allow redundant 0xFE0F after emoji. 2023-01-18 18:22:41 +03:00
levlam
1588f0d687 Return after call to on_error. 2023-01-18 17:10:08 +03:00
levlam
d912fd1431 Improve can_send_messages documentation. 2023-01-17 16:26:20 +03:00
levlam
42af57ee05 Support General topic in getMessageThread. 2023-01-17 15:34:31 +03:00
levlam
89efc4feca Explicitly define static constexpr fields. 2023-01-17 14:46:21 +03:00
levlam
754ff0fc53 Improve handling of internal options with updates. 2023-01-17 14:24:18 +03:00
levlam
02a4851e12 Fix set_option_empty. 2023-01-17 13:55:51 +03:00
levlam
4408af6643 Improve "id" variable names in FileManager. 2023-01-16 13:30:03 +03:00
levlam
ad8f0c4146 Improve some spelling. 2023-01-16 12:59:43 +03:00
levlam
3e5f30af70 Improve event_id variable names. 2023-01-16 12:47:37 +03:00
levlam
c508e54a49 Improve message_id variable names in Session. 2023-01-15 23:27:58 +03:00
levlam
8d8f72a17a Fix some lower-case spelling. 2023-01-15 12:00:26 +03:00
levlam
052d5e120b Improve some mixed-case spelling. 2023-01-15 11:25:54 +03:00
levlam
45ff12ca49 Improve PTS/QTS spelling. 2023-01-15 11:05:53 +03:00
levlam
fb935a8de2 Reduce ping timeout in primary non-main-DC connections. 2023-01-15 00:25:22 +03:00
levlam
973df16c88 Improve logging. 2023-01-14 23:08:50 +03:00
levlam
1a732db19e Explicitly fail some promises on closing. 2023-01-14 22:01:35 +03:00
levlam
fb79543d41 Combine getChannel queries with the same channel_id. 2023-01-13 15:42:15 +03:00
levlam
d3690e1502 Merge GetChat queries. 2023-01-13 14:45:53 +03:00
levlam
13e8094aaa Reload contacts if failed to load the from database. 2023-01-13 14:38:36 +03:00
levlam
eed410ce0a Merge getUser queries. 2023-01-13 14:29:47 +03:00
levlam
b514162c7e Add QueryMerger test. 2023-01-13 13:53:56 +03:00
levlam
b1883d357c Add QueryMerger. 2023-01-13 13:09:38 +03:00
levlam
75bdc6292b Remove some getAuthorizationState usages. 2023-01-12 22:25:47 +03:00
levlam
e87e18c8be Use busy-waiting instead of short Sleep on Windows. 2023-01-11 13:52:46 +03:00
levlam
7a233f25eb Simplify Scheduler::send_impl. 2023-01-11 13:27:53 +03:00
levlam
62720bde3c Remove now unneeded wait_generation. 2023-01-11 12:49:04 +03:00
levlam
3b6874818a Always wait for mailbox. 2023-01-11 01:08:22 +03:00
levlam
64406035a7 Update rust-tdlib link. 2023-01-10 22:59:37 +03:00
levlam
853030e999 Don't use FILE_FLAG_OPEN_REPARSE_POINT with UWP. 2023-01-10 22:56:11 +03:00
levlam
d7ea7dfea7 Remove never used AbridgedTransport. 2023-01-10 22:03:17 +03:00
levlam
eac1f0a096 Improve config recovery source order. 2023-01-10 20:03:05 +03:00
levlam
ed2644c2fd Add tests for anonymous phone numbers. 2023-01-09 18:19:02 +03:00
levlam
8ceeb39f5d Update answers in get_phone_number_info test. 2023-01-09 17:53:07 +03:00
levlam
eeb73d4eb2 Optimize parsing of argument value in HTML tags. 2023-01-09 17:14:31 +03:00
levlam
1919671df3 Improve parse_html test. 2023-01-09 17:07:08 +03:00
levlam
137fd3beb9 Replace text in-place in parse_html. 2023-01-09 15:12:14 +03:00
levlam
ac0de06b5f Ensure that PTS/QTS updates are null after processing. 2023-01-09 13:27:28 +03:00
levlam
fd53a81603 Replace text in-place in parse_markdown. 2023-01-09 13:11:45 +03:00
levlam
34226ac4ad Recheck UTF-8 in parse_html only if needed. 2023-01-09 12:59:14 +03:00
levlam
0fb64f97a4 Use StringBuilder to create new string in parse_html. 2023-01-09 12:43:15 +03:00
levlam
2ba41ac279 Explicitly use std::move to return entities. 2023-01-09 10:46:49 +03:00
levlam
4dc554bd08 Avoid some minor string copying in message entity parsing. 2023-01-09 00:48:45 +03:00
levlam
1c037ff0e0 Don't send more than 100 user entities to server. 2023-01-08 23:07:57 +03:00
levlam
d0500988ac Remove checks that status.is_error in ResultHandler::on_error. 2023-01-07 23:36:55 +03:00
levlam
c8acf63e02 Delete TQueue events directly if appropriate. 2023-01-06 17:54:02 +03:00
levlam
d12ca158c4 Add constant methods to td::Container. 2023-01-06 14:54:54 +03:00
levlam
aa8c5ec1c9 Improve setAuthenticationPhoneNumber and requestQrCodeAuthentication documentation. 2023-01-06 14:19:44 +03:00