Commit Graph

672 Commits

Author SHA1 Message Date
levlam
05bb41b250 Rename Socks5 actor for ping.
GitOrigin-RevId: 6e41fef4b451feffa6376e6cc61fec434270e78d
2018-06-28 16:53:40 +03:00
levlam
002f4e31b0 Fix warning.
GitOrigin-RevId: c54303ab305fec0f7b30a5d231688add912b97d0
2018-06-28 16:50:43 +03:00
levlam
b74ca51b36 Better fields documentation.
GitOrigin-RevId: 346206d64f05125b7b46bd695b0988b01d088d21
2018-06-28 02:54:28 +03:00
levlam
2a35816992 Fix warning.
GitOrigin-RevId: a2f981b2fb1a90947603c5cbdfcc95315c515987
2018-06-28 02:50:46 +03:00
levlam
4f1962f43d Fix CE.
GitOrigin-RevId: 33fdbcad74a216e804c22e7508591b5b42f5ff40
2018-06-28 02:45:06 +03:00
levlam
995928743f Increase generation just in case.
GitOrigin-RevId: 92f24329c8b10f321c514646627f198bb5e85045
2018-06-28 02:38:33 +03:00
levlam
c40cacfa34 Marked as unread support.
GitOrigin-RevId: b439d8365dad9580cf2d93f97037a2f37cd83adf
2018-06-28 00:08:44 +03:00
levlam
a3571b676e Allow to call deleteAccount before authorization. ConfirmPhone support.
GitOrigin-RevId: 36829ee37780ee82b1eb25cea594a673aa490dda
2018-06-27 21:26:52 +03:00
levlam
48740add28 Init some uninitialized Result variables.
GitOrigin-RevId: 48e15168e48d131c53a93a5c2971c7dadeeeb270
2018-06-27 19:24:42 +03:00
levlam
3b11e1818c Better check for suffix load done.
GitOrigin-RevId: d86a868ec5c1e7d596c5f81d26b62f4e683b91a2
2018-06-27 18:33:38 +03:00
levlam
c07bc54f34 Fix suffix_load_first_message_id when corresponding message is deleted.
GitOrigin-RevId: 025744f5120f7f6860f0af46dfcdc8870110f48a
2018-06-27 18:28:58 +03:00
levlam
4eb2981af6 Better handling of DeleteMessage log events.
GitOrigin-RevId: 205850a5258a7aeb135c1eaa0698905261080ae3
2018-06-27 18:17:33 +03:00
levlam
6bd1ee47a9 Add *_search_bot_username options.
GitOrigin-RevId: 969324d6b3443dd8f351173ed0fb87b2443eaf44
2018-06-27 02:35:32 +03:00
levlam
b20c77d459 Add message_*_length_max options.
GitOrigin-RevId: 27fc7c79b0820916daaf23745078a4204c3dc6c9
2018-06-27 02:28:49 +03:00
levlam
e806037eea Support dc_txt_domain_name.
GitOrigin-RevId: 6762d63f67b886cb990eae24536adcabda557316
2018-06-26 23:46:15 +03:00
levlam
7150cfc8b2 Add disable_top_chats option.
GitOrigin-RevId: 732ba115f67d19585b4e2f4aae024194c6e65174
2018-06-26 22:51:00 +03:00
levlam
46535703e0 Fix some includes.
GitOrigin-RevId: 901d167d7197e4c0222656e9fc1f9fc0e216e44b
2018-06-26 02:43:11 +03:00
levlam
aa13a57a3c Update layer to 82. Contact.vcard support.
GitOrigin-RevId: 302d65351cfaeb6b4e82c594565ab1aef18b2a42
2018-06-26 00:10:53 +03:00
levlam
fa80e98227 Simplify Java getConstructor.
GitOrigin-RevId: c26fe30c837a09e50810b86d407ba14fe906afa0
2018-06-25 17:30:15 +03:00
levlam
2fdf013504 Java documentation generator improvements.
GitOrigin-RevId: 7c63fd8d816707b45fdee5b852a16e64a084df58
2018-06-25 17:23:56 +03:00
levlam
fed222e11a Add add_user debug.
GitOrigin-RevId: 7e2bb3187f278cc664a720d1ce1d7689ba69d5d9
2018-06-25 04:06:20 +03:00
levlam
d2e4f74c52 Match new server parsing of # in URLs.
GitOrigin-RevId: f1e26ad10c80721db14132fd3fc3ba17aa2db509
2018-06-25 03:22:56 +03:00
levlam
a365284831 Support mailto emails.
GitOrigin-RevId: aca706aee9b1adb34f3f25700e91cd0d0880424f
2018-06-25 03:15:38 +03:00
levlam
28ddc0525c Fix DcOptionsSet::reset.
GitOrigin-RevId: 6c0b066c380ac45e2264605d91c09ca5d51bc52b
2018-06-25 03:08:37 +03:00
levlam
046ad3b752 Make TlStorerUnsafe buffer unsigned.
GitOrigin-RevId: 8bb19c10e4edd8b015d3a2be0449426c9c07f7df
2018-06-25 02:58:43 +03:00
levlam
b4d6662f71 Add some debug.
GitOrigin-RevId: 29b2efa626ed4a6a0c0eb2ac2cec2fb245e9e6b5
2018-06-25 01:51:15 +03:00
levlam
54d5b70abf Better INPUT_METHOD_INVALID logging.
GitOrigin-RevId: 81cff4d804281b64191faff56bc2678689c1c52d
2018-06-25 00:52:17 +03:00
levlam
45af3f53db Add ignore_inline_thumbnails option.
GitOrigin-RevId: 5721f8d0fd0a0adc3ba2c65c1c4af35690bdf47a
2018-06-24 23:48:48 +03:00
levlam
231c00ed9f Java: return this.CONSTRUCTOR from getConstructor.
GitOrigin-RevId: 152401286b24ec03a25339f3a704cbe2923e9b44
2018-06-24 21:22:51 +03:00
levlam
75a577e8a5 Better replacement for USER_IS_BOT error.
GitOrigin-RevId: 88dafd60d1bbdaa04f2e90877551db6a98ae1ba0
2018-06-24 20:41:19 +03:00
levlam
8c45bd919e Fix pad_size type.
GitOrigin-RevId: 3ec3f1f14a3a54fc28131f3b4bc7bda383e3a704
2018-06-24 19:50:09 +03:00
levlam
97e6e99eaf Allow smaller pts decrease.
GitOrigin-RevId: 31e2429ec98b9d64eb5d38b07a9a356b038cf94f
2018-06-23 02:19:22 +03:00
levlam
f18dea245c Remove names Status constructors.
GitOrigin-RevId: bd196c8a3d5657f2f8ce3e5ceaf3e64821177398
2018-06-21 23:20:32 +03:00
levlam
8b5b73508a Ignore error code of MSG_WAIT_FAILED.
GitOrigin-RevId: 501b759e3f1c33ec881723c15f155b0b0b1cf606
2018-06-21 22:32:56 +03:00
levlam
44bc3d5f08 Add debug to send_query.
GitOrigin-RevId: 2ac237e8288335acad7f9f8f0a3ab6ef686210b7
2018-06-21 22:14:52 +03:00
levlam
93afb805f1 Add SequenceDispatcher debug.
GitOrigin-RevId: 05f3333ff1caf102da58606af778f4e56a7ec751
2018-06-21 21:54:06 +03:00
levlam
b3499717a4 Fix reading of failed to send messages.
GitOrigin-RevId: 72b24013e2e15664d8dee7b7980e159fd4277dad
2018-06-21 21:21:09 +03:00
levlam
818d6dee0c Fix suffix load in presence of message unload.
GitOrigin-RevId: 0324254270c62f8ea97d1d787990490d148319d4
2018-06-21 20:55:59 +03:00
levlam
7ff339e804 Refactor ttl_read_history.
GitOrigin-RevId: 6d5c57716a332a88f30ff11c831371568768a125
2018-06-20 22:18:53 +03:00
levlam
4121f8d6ab Add ReadHistoryInSecretChatLogEvent.
GitOrigin-RevId: 92da5d4224dee274267123c2467704197d3cc3d4
2018-06-20 04:02:02 +03:00
Arseny Smirnov
9d5dd09fd7 mtproto::Transport: bugfix
GitOrigin-RevId: ea53041b64a84292830e25e111bdbd31d21f1911
2018-06-20 00:00:02 +03:00
levlam
1f9052f85b Better tg:// URL formatting.
GitOrigin-RevId: 766363c58886800c186bceabc8ce4746f1835bf6
2018-06-19 17:02:55 +03:00
levlam
1ef5c89a91 Allow tg URLs in text links and url buttons.
GitOrigin-RevId: 9708c3016375564e737bf5a8f79494807d61c10f
2018-06-19 13:23:52 +03:00
levlam
537d96cc8e Remove read history delay when there is no more messages to read.
GitOrigin-RevId: 08ec35c839c35bb33ea4e3bc5063e08b0f8c6cc0
2018-06-19 03:35:09 +03:00
levlam
4d5197d31c Edit message media.
GitOrigin-RevId: eba2f32f4e033720ea1143463a9f3d1eae54880d
2018-06-19 02:31:34 +03:00
levlam
744df9f511 Minor fixes.
GitOrigin-RevId: fb737b1ddcb72ce4c6393d9e282336184285dafd
2018-06-17 22:56:21 +03:00
Arseny Smirnov
69cf867d47 0xdd quick ack
GitOrigin-RevId: 3e35df493f46f91cd1cf81671819848d9640fedd
2018-06-17 20:52:40 +03:00
levlam
3827fb91eb Fix send_get_dialog_query.
GitOrigin-RevId: f1bee7dddc9a95daccc36cc5bb1e51f2627907de
2018-06-17 18:20:37 +03:00
levlam
aeaa195233 Update version to 1.2.4.
GitOrigin-RevId: 62fed13a16fc92dbb3fae722a5cb4c6ec58dbb09
2018-06-16 20:04:53 +03:00
levlam
8a6b550a86 New transport improvements.
GitOrigin-RevId: cc7b8aafe6a30009fd4d549ef969c373ce2b9d9a
2018-06-16 03:03:14 +03:00
levlam
70be2b6f85 Add chat.is_sponsored field and updateChatIsSponsored.
GitOrigin-RevId: 0100c868c410f9b4324b3e0de9912bec22d172d5
2018-06-15 22:52:52 +03:00
Arseny Smirnov
c02d4505e4 0xdd transport
GitOrigin-RevId: 241c2fcea3ebaac20fc68531692cbd299a9de95a
2018-06-15 21:54:22 +03:00
Arseny Smirnov
fdd898124b Ignore inbound unencrypted packets padding (0xdd transport)
GitOrigin-RevId: 7da991cb741b65fe2ade26ccc4fc3ef3c788db7a
2018-06-15 21:11:07 +03:00
Arseny Smirnov
d07c172ec8 Padding in unencrypted packets
GitOrigin-RevId: e547cedd27afebc8023afaca5ef0a7af6e2f3075
2018-06-15 18:11:48 +03:00
Arseny Smirnov
b44c7cfcb8 Fix alignment of recieved packet
GitOrigin-RevId: 8cbb24dabb7cf8050cecd47364df496b122db559
2018-06-15 17:30:32 +03:00
levlam
4aa5b0af02 Better private chat title.
GitOrigin-RevId: 0e2eea7961667d25810d14cb0db53806a9525e4e
2018-06-15 20:41:21 +03:00
Arseny Smirnov
e5c90f239f Secret chats: check that his_layer is monotonic
GitOrigin-RevId: cb6b50e768a90c5afcece185bea2e7209a9939f5
2018-06-14 18:00:10 +03:00
levlam
3a8c0f131e Rename promoted chat to sponsored.
GitOrigin-RevId: e385126253199a46b55fba7d350e0c115a8c333e
2018-06-14 00:07:24 +03:00
levlam
fe203b3d5c Fix on_alarm_timeout.
GitOrigin-RevId: 45151d440833becc478abe8606ddc1369be3f262
2018-06-13 21:21:29 +03:00
Arseny Smirnov
d4cc127f17 Use CancellationToken for ConnectionCreator::request_connection promises
GitOrigin-RevId: 14157bd3677f4720d37ef70f64500522e3674173
2018-06-13 19:20:42 +03:00
Arseny Smirnov
3c1698dddf Session: cache salt for temp keys, better on_mtproto_header
GitOrigin-RevId: 02ba02aaf86e36402536d98d7bb80fd198c68378
2018-06-13 18:17:27 +03:00
levlam
0f0e5de3f2 Update updateTermsOfService documentation.
GitOrigin-RevId: 38f0a10464aaf9917dc383b26d9d30759197e1c8
2018-06-12 17:59:14 +03:00
levlam
67641bfa76 Fix first_name to phone_number only if last_name is empty.
GitOrigin-RevId: 4f4732713400c56590d02338f0f1d1fb5fd83908
2018-06-12 02:15:02 +03:00
levlam
c0944f6bda Continue to load terms of service after they are accepted.
GitOrigin-RevId: c7dadcea4bf8b61f3d428999e034572c67ef8b3f
2018-06-09 02:00:15 +03:00
levlam
174eaf2817 Fix FileEncryptionKey.
GitOrigin-RevId: 59949d62ce074db7afe33e0b42666d7b8bd14973
2018-06-09 00:02:19 +03:00
Arseny Smirnov
ecce3b4f53 FileDownloader: bugfix
GitOrigin-RevId: 475a848c68497fdcfc43dfaad6019a271a78b10c
2018-06-08 23:15:04 +03:00
levlam
54e1a4f100 Fix sending secure files to secret chats.
GitOrigin-RevId: e5cafeb4d3e48c3b5c925c81dd3406d8b0ce44da
2018-06-08 22:23:49 +03:00
levlam
ea8d5dbda7 Add debug for INPUT_METHOD_INVALID and BOT_METHOD_INVALID.
GitOrigin-RevId: dfc4e6c81f80504d2299a59f21cd79633fd98daf
2018-06-08 21:42:04 +03:00
levlam
5d1323311a Disable updating notification settings for bots.
GitOrigin-RevId: 7562ea7dd624ba95af875f03b354f94dac95bbbb
2018-06-08 19:56:26 +03:00
levlam
1bed66122a Add is_update_new_chat_sent flag.
GitOrigin-RevId: bdc493e48f8ab1f9e5d50780edf98e7d63c8159c
2018-06-08 19:42:21 +03:00
levlam
69a3eecbcc Fix getTermsOfServiceUpdate for bots.
GitOrigin-RevId: 177f5362015dd78e8ef94cbbfc57b8dd49984655
2018-06-08 19:20:09 +03:00
levlam
427918d8f9 Fix CE.
GitOrigin-RevId: 24149e4f37e816c1034d237df4715fa299bdf024
2018-06-08 17:20:42 +03:00
levlam
ed06ae67f4 Delay applying user photos for bots.
GitOrigin-RevId: ee32e9f6e9445f439a5a21cafe1b726be86a0503
2018-06-08 17:13:54 +03:00
levlam
53f7e0cedf Terms of service update support.
GitOrigin-RevId: 3c4c34def98e06e9b6da5102614f797046ff0921
2018-06-08 01:19:34 +03:00
levlam
a72494d721 Support Terms of Service.
GitOrigin-RevId: 389c4ba590a4feb34ac6d801f9097291e87423d8
2018-06-07 21:42:17 +03:00
Arseny Smirnov
50a5098b0f FileLoadManager: hangup bugfix
GitOrigin-RevId: 7d8a922dfd3e07769507123e39df66d7ea3d00d3
2018-06-07 14:37:42 +03:00
levlam
abaaae5720 Fix need_merge_files usage.
GitOrigin-RevId: c584f7a67e7d442e84d206ce0930b23361e5515e
2018-06-06 18:16:02 +03:00
levlam
984b401489 Better cancel upload file.
GitOrigin-RevId: 7a50d7da953c8cc582a1e19d279fd113fd5f4a9d
2018-06-06 18:10:21 +03:00
levlam
c859a4eb78 Remove some logging.
GitOrigin-RevId: 20b3a4942bfd51dbbcb49f9b5ac973406c7163ac
2018-06-06 17:27:45 +03:00
levlam
58ae8cc587 Better condition for updating of last_database_message_id.
GitOrigin-RevId: 48fce1e008339da955bece831b4f1ba9254e0263
2018-06-06 17:01:01 +03:00
levlam
cb1e0374af Minor fixes.
GitOrigin-RevId: 7deac5583350d64cf6fd0e323f2291804e3ba995
2018-06-05 20:44:41 +03:00
levlam
60200b0b40 Add cancel_upload_message_content_files.
GitOrigin-RevId: c35ba525230eca2ab086ac3e109dc81cd96665f3
2018-06-05 19:54:33 +03:00
levlam
a1f90582d9 Documentation for proxy_id == 0 in pingProxy.
GitOrigin-RevId: db8988a29ad5881150204e7f952c95d6095ff5d2
2018-06-05 17:55:00 +03:00
levlam
4806933832 Fix adding failed to send messages to dialog.
GitOrigin-RevId: 1d09e032a12bc4338f7d28b70b9d8a4086ec0f0c
2018-06-05 05:03:35 +03:00
levlam
dbe869e70c Better warning.
GitOrigin-RevId: dc260c72591e789431b23f9855232672d27daf5d
2018-06-05 03:23:48 +03:00
levlam
d6d923882b Move some logging to DEBUG.
GitOrigin-RevId: 0767598c3b43c024efa2e8437e330d3d8f9537c8
2018-06-05 02:40:00 +03:00
levlam
89c8bf819c Move some logging from INFO to DEBUG,
GitOrigin-RevId: f56140a9c03fcb0af8c8ecc381b3e111febf616f
2018-06-05 00:12:34 +03:00
levlam
9b946e7394 Do not use static IP for MTProto-proxy.
GitOrigin-RevId: e2be60b362b9254b700bbac0b97bf496fd0abcf1
2018-06-04 20:54:18 +03:00
levlam
ef2eb1c3cf Prefer IPv4 for connections through proxy.
GitOrigin-RevId: 5512d66191496bc964829f1a7bfe79d1d4474fef
2018-06-04 20:50:34 +03:00
levlam
2c5f5a8587 Improve PingConnection.
GitOrigin-RevId: be82fa18e2f9a154d3d276b5618d0ca72b9e4282
2018-06-04 19:58:54 +03:00
levlam
e5385cbd0b Better ping time calculation.
GitOrigin-RevId: d9cf250dae657ed498d932b2e335efbddb374c43
2018-06-04 19:35:29 +03:00
levlam
8253460dbb Better ping of main DC.
GitOrigin-RevId: f3231b9b8f558cfceef6d2b952b4f1f7051cb396
2018-06-04 18:55:38 +03:00
levlam
d774b6612f ConnectionCreator::get_transport_type.
GitOrigin-RevId: e73fa95b64f5cd36640ab574b3d0b30823ece001
2018-06-04 01:17:59 +03:00
levlam
13f17714fc DcOptionsSet::find_all_connections.
GitOrigin-RevId: ed921667bf1cbc57ad4a442e70a3fd307d839319
2018-06-03 02:35:32 +03:00
levlam
066e6a90e3 Allow 0 in pingProxy.
GitOrigin-RevId: c03522ac55da93543bf6bfefdfae28b280458233
2018-06-02 15:20:35 +03:00
levlam
e11d4e02db Fix HeaderCreator usage.
GitOrigin-RevId: 1ac210190048ad2797751630a838f74541dda37d
2018-06-01 23:45:34 +03:00
levlam
56a2cac6ba Update layer to 81.
GitOrigin-RevId: c6579e02edaff656ab17b3d94695cab8c7960b2d
2018-06-01 23:15:13 +03:00
levlam
4a6b1fa4d3 Use 2 connections for file download.
GitOrigin-RevId: 04bc4b69b0e5a9608a49ec03e8b204ccc49bf349
2018-06-01 22:16:35 +03:00
levlam
98aba6304c Persistent getDialogQuery.
GitOrigin-RevId: e882cd049aac7aa86cf03750a78c3b92635f5379
2018-06-01 19:58:23 +03:00
levlam
d67f983d41 tg_cli: better file download time.
GitOrigin-RevId: 334e18befa7f0b34eb568bf8b010f74fca7e4e2e
2018-06-01 03:05:46 +03:00