Commit Graph

3780 Commits

Author SHA1 Message Date
levlam
c4023a3f9b Use KB instead of kB for 1024 bytes.
GitOrigin-RevId: 163ebf3f28f5e6f6710b3ff85bdfc21996c67acb
2020-03-20 03:20:07 +03:00
levlam
61d0b113d9 Do not add sponsored chat to ordered_dialogs_.
GitOrigin-RevId: b0b9f90f2018bbe4f32597cd5b4077056ac901e7
2020-03-20 01:15:15 +03:00
levlam
3caaddc98d Do not allow to pin chats not from chat list.
GitOrigin-RevId: 05cc829da14c54b73f7e5425c08647b70ddf2a49
2020-03-20 00:22:11 +03:00
levlam
33b87d1b13 Add MessagesManager::is_removed_from_dialog_list.
GitOrigin-RevId: a0d49b0a9c945110b6a7365489795c2fb9b73126
2020-03-19 23:52:09 +03:00
levlam
f14b83f367 Minor.
GitOrigin-RevId: cbffbf1a1918a86140c1b4b06a9e8a97627d46d3
2020-03-19 02:53:04 +03:00
levlam
9d1e3ed661 Add WIN32_LEAN_AND_MEAN during build on Windows (0% build time speed up).
GitOrigin-RevId: ebe9742fa94187434be37339862f11b750db44ac
2020-03-19 02:33:53 +03:00
levlam
0578d58d93 Minor improvements.
GitOrigin-RevId: 6c87ee82034d077c1f16f053948a0d89b4c2cd71
2020-03-19 01:54:59 +03:00
levlam
b9fd8fd5d6 More need_unread_counter usages.
GitOrigin-RevId: 50f1daa84a2e19a257a1f357454b3ea363afe1d4
2020-03-19 00:52:53 +03:00
levlam
443924ca11 Simplify MessagesManager::set_dialog_order.
GitOrigin-RevId: a91e590024087f71146637064b5a44a4a2da9960
2020-03-18 23:19:23 +03:00
levlam
fd10b27847 Improve logging.
GitOrigin-RevId: d03e6ce64b2e88389f0e3df1ecfec4efb5711e75
2020-03-18 20:51:02 +03:00
levlam
cd8c63f073 Simplify update_dialog_pos calls.
GitOrigin-RevId: 60f274d8149a650a04e2a9f289b7aba2992583b3
2020-03-18 19:41:18 +03:00
levlam
a1a7fc7a4d Remove unneeded function parameters.
GitOrigin-RevId: d7e13769e18a6949bbae73da050b664fe09cc1f0
2020-03-17 04:29:24 +03:00
levlam
62863e9280 Minor fixes.
GitOrigin-RevId: e7b9ea9cb76d5c65c00a5ca86c85c6c8984e1d3c
2020-03-16 22:00:44 +03:00
levlam
eea23e4255 Fix formatting.
GitOrigin-RevId: 9d7abcae840a94912b8c0316c37a2553a38fa864
2020-03-16 19:42:10 +03:00
levlam
6674359694 Fix tdapi bigobj linking.
GitOrigin-RevId: 46db6ce5768d513d44f7daf46bd0b10680e837e0
2020-03-16 17:23:30 +03:00
levlam
7a649c23f1 Fix chat order comparison.
GitOrigin-RevId: bf16c396fd837410124b59ea97f2953dcefd0bbc
2020-03-16 16:32:27 +03:00
levlam
07d6f17f33 Fix dialog order comparisons.
GitOrigin-RevId: c3d0a23d3e8d894532fa2dcf708175242e715c80
2020-03-16 04:12:34 +03:00
levlam
784836f3b6 Decrease maximum total_timeout_limit for bots.
GitOrigin-RevId: 8d42ef41c28e8a5a276f4a1b6058c3391419146e
2020-03-16 04:09:17 +03:00
levlam
aac59710b4 Move fetch_result to corresponding files.
GitOrigin-RevId: e553631e87f81f466ce8ebc353820acd82dd8510
2020-03-16 01:42:24 +03:00
levlam
d06a786a16 Simplify NetQueryCreator and remove mtproto dependency on telegram_api.
GitOrigin-RevId: 2edfc9d6d80eab8716dfd3722f6aebe53dba1e47
2020-03-16 01:01:14 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
2bd330a5aa Add NetQueryCreator.create_guest_dc.
GitOrigin-RevId: e8b0fffb5bb762ce288a9cbf1c446d584c7258e1
2020-03-15 05:22:43 +03:00
levlam
8d01251f8b Add NetQueryCreator::create_unauth.
GitOrigin-RevId: 79043a3662b0353f000f388b3ee2763abf49fe2d
2020-03-15 04:51:14 +03:00
levlam
c4c9e51157 Make all fields required in full NetQueryCreator methos.
GitOrigin-RevId: aa8ebb5cc46b9f3b7c0b606c012ace5fafe2bbf2
2020-03-15 04:15:54 +03:00
levlam
0d08895871 Simplify NetQuery creation in SecretChatActor.
GitOrigin-RevId: a6d00cb5175552f9aa6dc7b38462fc00eb5b78f7
2020-03-15 03:43:42 +03:00
levlam
ad3c28932b Remove manual Gzip flag specification in query creation; support uploaded files pack.
GitOrigin-RevId: 46ddfc230182615517eac7b611a79284559bd694
2020-03-15 02:49:10 +03:00
levlam
34973a5823 Add gzencode test.
GitOrigin-RevId: 2c4cced1680efe16b8145ba2c5614bad26c9e77e
2020-03-15 02:32:53 +03:00
levlam
a0c5c5900a Better rand_string parameter types.
GitOrigin-RevId: 2702375880663d3cfe1546b047e01ba02ffcd2ce
2020-03-15 02:01:22 +03:00
levlam
968689157c Make max_compression_ratio required parameter in gzencode.
GitOrigin-RevId: c787fdeae202d3b80944412e7db4209f35adcd07
2020-03-15 01:56:48 +03:00
levlam
b4138231ec Remove total_timeout_limit parameter from NetQuery creator.
GitOrigin-RevId: 5c5a15654176061a64c0f167633a7842192200ba
2020-03-15 01:44:21 +03:00
levlam
a157cbf8d7 Replace NetQueryCreator.create_result with create_update.
GitOrigin-RevId: 21523bbd42a847b26359e49d6b70556599319121
2020-03-15 01:24:11 +03:00
levlam
7d71ec447a tg_cli: remove file_reference logging from WARNING,
GitOrigin-RevId: 06483fd96b69f5ef74660adeec21e46fed99bbb3
2020-03-14 20:38:09 +03:00
levlam
1ed0ab3146 Improve logging on failed check.
GitOrigin-RevId: 3058af6fe76779e02eb6440fd1ab13ce07621785
2020-03-14 01:54:13 +03:00
levlam
3d85a7f304 Fix possible crash.
GitOrigin-RevId: 33fdfa3f92b9dfe393aac934f1307be00d7c308b
2020-03-13 02:50:29 +03:00
levlam
a6ec9e784a Fix draftMessage.date field type.
GitOrigin-RevId: 819b7e0442481ed875084910f44e96d006a08701
2020-03-12 22:59:31 +03:00
levlam
6518f0448c Fix warnings.
GitOrigin-RevId: 42ec38520b8ed0a040680df56750493bbe4eccc3
2020-03-12 20:34:06 +03:00
levlam
9c0f2b0b90 Add "always_parse_markdown" option.
GitOrigin-RevId: d2eaef75272af9073fac5f49c37643cd544f43e8
2020-03-12 20:20:59 +03:00
levlam
8ca5e11e3f Add draftMessage.date.
GitOrigin-RevId: 5fea574e388a14fed3186b5c97a2a830181d6e98
2020-03-12 19:56:42 +03:00
levlam
01de03a3ee Improve logging.
GitOrigin-RevId: 26f1002bdf0e437da17d5132e7a6963f39548fdf
2020-03-12 19:44:29 +03:00
levlam
9b01faa1fd Add logging on check fail.
GitOrigin-RevId: 98322776755f5155b450b27040679d778505298f
2020-03-12 18:37:25 +03:00
levlam
90d2203dab Improve logging on check fail.
GitOrigin-RevId: 91812e6f8c92ee58b503dd93126695b37f7c5950
2020-03-12 18:36:47 +03:00
levlam
dca3862088 Update fix_formatted_text test.
GitOrigin-RevId: ab55a080724eaff5f2074cc7273aafc7285d6fa8
2020-03-12 16:42:39 +03:00
levlam
9c67f42682 Add td_api::getMarkdownText.
GitOrigin-RevId: b463cc2c92052c552d66d774450ffa7bb4bc132e
2020-03-12 06:22:14 +03:00
levlam
e6efab096a Add tests for parse_markdown_v3.
GitOrigin-RevId: 1fc21dbdf3871cc3a30286cf9ebca257c70a299c
2020-03-12 02:49:16 +03:00
levlam
ed7e486668 Improve parse_markdown_v3 test and fix parse_text_url_entities_v3.
GitOrigin-RevId: 337b87cbb885f92f30c9c95603b0ac37693d104f
2020-03-12 01:44:42 +03:00
levlam
ee0e60e097 Allow to output FormattedText to StringBuilder.
GitOrigin-RevId: 8ffffb2305ebe531f5dcb9118f9333367afb1238
2020-03-11 04:09:23 +03:00
levlam
1433b3d82a Do not allow to archive saved messages and 777000.
GitOrigin-RevId: 570ec48d7347ebaf4ea3a35847d95714b5fcf741
2020-03-11 01:36:47 +03:00
levlam
a0bf46a4d8 Fix wrong saved legacy time_diff.
GitOrigin-RevId: 4ab3c37713c8d2b1d9f469cea4b13f0aab7558ac
2020-03-11 01:24:07 +03:00
levlam
d48faede71 Remove now unneeded BigNum::ensure_const_time method.
GitOrigin-RevId: ce34efc94f3e13f306592bed86a37f342a356a23
2020-03-10 18:31:13 +03:00
levlam
6854db1021 Remove unneeded call to ensure_const_time on a public exponent.
GitOrigin-RevId: 5b35a453851ecc4caf4c97f17d059c2dd1c81cfd
2020-03-10 18:28:25 +03:00