Commit Graph

588 Commits

Author SHA1 Message Date
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
levlam
cc08a179d5 tg_cli: debug download time.
GitOrigin-RevId: c3901a8761c23573b68100b4a9aec68da051f2b5
2018-06-01 02:12:36 +03:00
levlam
a038754fcb Allow to check code before entering first name on registration.
GitOrigin-RevId: be08dd29486959d4059f72af61c4c630afc812c3
2018-06-01 01:27:34 +03:00
levlam
8750c7a41a Better suggested name for sticker thumbnails.
GitOrigin-RevId: 5372a13825f558e47ee84bfaa705af6a9b587298
2018-06-01 01:23:07 +03:00
levlam
804827cfda tg_cli: sstt, as_input_thumbnail.
GitOrigin-RevId: 282f631ddfea2efee7c451a49c745ffc004b1de5
2018-06-01 01:22:27 +03:00
levlam
df900c867c Better merge_choose: prefer new.
GitOrigin-RevId: 9d737eeda18ece2cceb98f6e9f1dd95c0bd8294a
2018-06-01 01:21:35 +03:00
Arseny Smirnov
56d2beedc4 Fix use_pfs for different Sessions
GitOrigin-RevId: 99fab277c0909da33cfc8c4e1ee827186dd5ac32
2018-05-31 20:40:26 +03:00
Arseny Smirnov
bd9c88794e Use pfs for media download
GitOrigin-RevId: afaa0e04f02b2b3dfb8822dacd56c0473b019527
2018-05-31 16:56:06 +03:00
Arseny Smirnov
2ede0fc336 GenAuthKeyActor: bugfix
GitOrigin-RevId: 024409dfc36edcb18a9e166b231a290295a7a978
2018-05-31 10:04:05 +03:00
levlam
74b27edd11 tg_cli: clean_photos.
GitOrigin-RevId: 650df5c04eb4ad6dcaa9eea3226f2e16fb68d9e8
2018-05-30 22:45:42 +03:00
Arseny Smirnov
b38094e372 Files: bugfix
GitOrigin-RevId: 179f1b4864e78337455264c3468ec5d4eabdeb2d
2018-05-30 22:21:40 +03:00
levlam
faf9be4231 Better file download debug.
GitOrigin-RevId: f2e33254bca1c1012f2d8f333554b039b47be3ce
2018-05-30 20:50:11 +03:00
Arseny Smirnov
6188a6c118 SecureId: minor files upload/download bugfix
GitOrigin-RevId: 8ba92f2d0e6f9098d36c68700edf15f452dd1ffa
2018-05-30 19:57:49 +03:00
Arseny Smirnov
c783a946c3 Session: fix warning
GitOrigin-RevId: 6183ab2342222670680057843fc3d908b7995ce8
2018-05-30 19:38:17 +03:00
levlam
a532374f20 Fix calls to register_remote.
GitOrigin-RevId: a8d816f39065a30d840996b5b97b196377a38d25
2018-05-29 22:20:46 +03:00
levlam
3ef7a790e9 Fix documentation.
GitOrigin-RevId: 3308d2141bae1da2aef7e5ead61bccfc18c9ae94
2018-05-29 20:22:19 +03:00
levlam
4114d8769f Bugfix.
GitOrigin-RevId: edd102f69ba7b9a96ff969baa71c2303e05a1776
2018-05-25 21:26:04 +03:00
levlam
3631815cc6 Add country_code to getTermsOfService.
GitOrigin-RevId: 35480bdb801373122d7e0536b30becb45c312db4
2018-05-25 11:49:00 +03:00
levlam
266722112e Fix clearImportedContacts and getImportedContactCount.
GitOrigin-RevId: 295c524eab124ee19284841b2b6aa3083c850446
2018-05-25 00:37:43 +03:00
levlam
ef01eba051 Remove debug logging.
GitOrigin-RevId: 2141ef5fcea0a84e60db3dfaf397efdc05d5c597
2018-05-24 20:08:47 +03:00
levlam
13fe5c0adc Better logging.
GitOrigin-RevId: eae79256699ffeab8c8290b2b6cbb188e3294d77
2018-05-24 19:54:57 +03:00
levlam
dd40469ee8 Fix check_phone_number_rules.
GitOrigin-RevId: 9ecdc91dfc0b9f5f07af987a822cd607cbe690b1
2018-05-24 19:40:00 +03:00
levlam
3229ea3ce2 Fix send_update_new_message.
GitOrigin-RevId: 12d4f0c6aa9b84b91bb1438fb1ffecab48381471
2018-05-24 19:27:56 +03:00
levlam
0e48dd8a81 New ConfigRecoverer scheme.
GitOrigin-RevId: 1101ddc56b0836387faf089ca52fe7376db9f88f
2018-05-24 18:09:27 +03:00
levlam
ede1d58e0f Add is_closed_ guard to FileManager.
GitOrigin-RevId: b85edd5e07da24250516141f73e2313c31fe2cc3
2018-05-24 13:43:50 +03:00
levlam
3f8be23cd2 Fix calling file load callbacks on closing.
GitOrigin-RevId: 1b1bad8bdd255332cdca2ece6cffd3ce16cfc7e2
2018-05-24 01:30:47 +03:00
levlam
0ad0079900 Add documentation for AUTH_KEY_DROP_.
GitOrigin-RevId: 992db5e7368ec75fbd30ae1f7ec6a8b4a5a06cd9
2018-05-23 20:09:57 +03:00
levlam
db6777c7f2 Use p_q_inner_data_dc.
GitOrigin-RevId: f1e57b83d850ac4233bf9508b6585aaf0efe1423
2018-05-23 19:49:05 +03:00
levlam
d763c755e1 Remove ConnectingToProxy state for MTProto-proxy.
GitOrigin-RevId: 21950ac6b0fc00f2b599ae158bb1b4414788d5c6
2018-05-23 18:51:58 +03:00
levlam
89d3b57265 Fix message_count_by_index when message content is changed.
GitOrigin-RevId: 1ac18955acfcce44881621932dbbf88bc59474da
2018-05-23 18:28:46 +03:00
levlam
d3b5029cba Optionally merge files in update_message_content.
GitOrigin-RevId: 785f1bca1360ab2330744ff55e93421eb7834801
2018-05-23 17:28:23 +03:00
levlam
5eea3d9c37 Update InitConnection request.
GitOrigin-RevId: b9785bf56bd4cb9c44c5a91f3cb07d2352bc6ca2
2018-05-22 14:09:58 +03:00
levlam
6f7d4b08bf Update layer to 80.
GitOrigin-RevId: fe59fee694886bd63e412fa8de33dd561302218c
2018-05-21 07:18:39 +03:00
levlam
407a8442f8 Fix null @extra in JSON interface.
GitOrigin-RevId: 1a470608d7cfbf58b55952eb3162e54d7ec245b7
2018-05-20 16:16:16 +03:00
levlam
004e562d0f Better JSON type names.
GitOrigin-RevId: 1d40b9f39a0850040820b90fcf874b42468edd2d
2018-05-20 15:30:36 +03:00
levlam
82df6d7625 Simpler ClientJson::send.
GitOrigin-RevId: 5f992052b2ac11385caee32d7dacc799036170cf
2018-05-20 02:56:41 +03:00
levlam
68dd5cece9 Fix debug bad parts.
GitOrigin-RevId: 867baaf16092b260f2695b94745fb9fe765b548a
2018-05-20 00:56:40 +03:00
levlam
8fb6edab2f Ping proxy fixes.
GitOrigin-RevId: cf6e8a2585fdfe7a7491109b8facf0dcad379d2c
2018-05-19 18:05:38 +03:00
Arseny Smirnov
3675e38605 Ping proxy
GitOrigin-RevId: ff4dfa54bee356a06b1ec076711fb28b894221cb
2018-05-18 23:43:38 +03:00
levlam
b3ca84fffb Delete unused fields. Add test.
GitOrigin-RevId: 6ce7ff71d926142a7c178d56a2f489f1634322b9
2018-05-18 19:44:46 +03:00
levlam
490c4e86a2 Minor fixes.
GitOrigin-RevId: f972e24191cc31262bf655774bc6193277b8842b
2018-05-18 15:57:40 +03:00
Arseny Smirnov
45a20f6929 Use persistend AuthKey in ConfigRecoverer
GitOrigin-RevId: 6c4ce6dc49d226de585c7c43d41471271c9fcca1
2018-05-18 14:38:49 +03:00
levlam
d9a89abd23 Fix raw_dc_id for test DC.
GitOrigin-RevId: 2fd4d78700d245b91a6b390df26568d910cbae37
2018-05-17 22:09:57 +03:00
levlam
cb6c46071e td_api::getProxyLink.
GitOrigin-RevId: 0d876446bbbb22467c452b088f4df24e7e1624a2
2018-05-17 21:08:51 +03:00
levlam
bf43893503 Fix false clang warning.
GitOrigin-RevId: 02f377c960d360f83452392d5cd76c3f6d4b02a1
2018-05-16 23:12:33 +03:00
levlam
f060f7da91 Remove CHECK_AUTH macros.
GitOrigin-RevId: 7560713096bfbf3a4c3ab1520961f3e190bfed95
2018-05-16 22:47:42 +03:00
levlam
67c00e02ea Complete pending preauthentication requests.
GitOrigin-RevId: 8e9b2ec7f8ba8e298f8d95ad7135f7607d440c2f
2018-05-16 22:35:27 +03:00
levlam
29ab63d063 Fix canceling alarms before init.
GitOrigin-RevId: 4ef53a7838c58b6bef1923f97cc0a2cc98786ef0
2018-05-16 18:40:26 +03:00
levlam
0fd4a3b780 Support for synchronous request and setAlarm before initialization.
GitOrigin-RevId: cd7c803d7755437a3240816f221817e08beb33d6
2018-05-15 23:04:27 +03:00
levlam
134849c906 Fix migrating to many proxies.
GitOrigin-RevId: b503ac549ff395143d521b0511fbf32f037df271
2018-05-15 19:44:24 +03:00
levlam
582d6e66a0 Remove logging.
GitOrigin-RevId: da24a4d5aede66cb14193cad28216f99e7f507dd
2018-05-15 15:21:53 +03:00
levlam
aeeef4ba74 Implement save_proxy_last_used_date.
GitOrigin-RevId: fa93bf71cdab89054c0576ca4256dbf9dd0bf0fb
2018-05-15 15:21:09 +03:00
levlam
e2504be79b tg_cli: fix "touch".
GitOrigin-RevId: 16654e7a90a33dcfdd8869616b51f28d6ca2ef66
2018-05-15 13:01:15 +03:00
levlam
cbef086816 Update version to 1.2.2.
GitOrigin-RevId: baed417ea9e9cdb4aa7b27be66ec2d70ba2fb3bd
2018-05-15 11:26:04 +03:00
levlam
105e0e3b84 Fix previous commit.
GitOrigin-RevId: 16029bdbf50092ff2e440869d5352b72e5628476
2018-05-14 22:11:48 +03:00
levlam
7de9a0c15d New Proxy API.
GitOrigin-RevId: 2f96b8d1732c25e10a7568c6cf2dbbe26a150e4a
2018-05-14 22:00:38 +03:00
levlam
b636b03e5d Do not set online timeout for bots.
GitOrigin-RevId: 7f1f0fb184a9349b17ab8f3a2b7347eb4bd47377
2018-05-14 20:44:23 +03:00
Arseny Smirnov
4a2b256ecd Secure file reuploading hotfix
GitOrigin-RevId: 8d64534b3afafeae35ff40531aaf1ba3b4d8a398
2018-05-11 22:13:18 +03:00
levlam
d61befbb1e Fix send_get_dialog_notification_settings_query.
GitOrigin-RevId: ed9f4abf5c2bb68c6fccc6cc1b55017e3c941296
2018-05-11 18:48:04 +03:00
levlam
40db52670d Vector<bytes> support in .NET binding.
GitOrigin-RevId: b9b168c865bb2144e902229e36776bdce92f22dc
2018-05-11 13:53:49 +03:00
levlam
bd7a53c936 Update version to 1.2.1.
GitOrigin-RevId: d1edb484c703d7ac1911bd6d45e73042917bf7ed
2018-05-10 22:11:20 +03:00
levlam
864a56626d Better load_messages.
GitOrigin-RevId: 514ccb557d906479f316094d92439635c831b2bb
2018-05-10 21:42:15 +03:00
levlam
fa99ec2875 Add promoted dialog to dialog list.
GitOrigin-RevId: db6936972df14739081b288cb270dc1560e46c61
2018-05-10 21:26:46 +03:00
levlam
1492467ab8 Notify sessions about mtproto header updates.
GitOrigin-RevId: 35ee6055c65c7656726a20672fa600823a13ac5f
2018-05-10 21:02:24 +03:00
levlam
47d5082253 Better repair_channel_server_unread_count.
GitOrigin-RevId: f89556066014dd7e9e6031f0157ae2a3ecd65ad6
2018-05-10 20:06:48 +03:00
levlam
9579edbd04 Fix compilation for Termux.
GitOrigin-RevId: d6ef97baaf2f48846189f89bc5c0c8ec824a2990
2018-05-10 10:49:47 +03:00
levlam
70438d829a Various fixes.
GitOrigin-RevId: dd3f4879617f42023c9c918d841d99299b13c7cf
2018-05-09 20:14:17 +03:00
levlam
c65b998cd6 All updatePromotedChat.
GitOrigin-RevId: 4a3c6283026ba15836cb7fa011c4b3ad21a64baa
2018-05-08 23:02:15 +03:00
levlam
5c1612e9eb Fix mtproto proxy secret.
GitOrigin-RevId: e561c27016d6f08f9923608ba7fc40ee419c6053
2018-05-08 18:08:26 +03:00
levlam
98289b9963 Add proxyMtproto to td_api.
GitOrigin-RevId: c872c063bc6e5d94c80ac1daa6b916f8ce5f4c23
2018-05-08 17:48:30 +03:00
levlam
63695490e0 Update layer 78.
GitOrigin-RevId: dfef982111d092425e56a400e0cc9f4c9cfcb2c9
2018-05-08 15:50:33 +03:00
levlam
5effa0f662 Fix CE.
GitOrigin-RevId: 7a8640af6bb30c1f079c85ef01ccc70023992432
2018-05-07 20:20:20 +03:00
levlam
c7cbecd2c1 Request only notification settings if they are needed.
GitOrigin-RevId: ecaacca6cc4ee5081859cd1120418a703b8d02b1
2018-05-03 17:21:49 +03:00
levlam
000e07e679 Combine getNotifySettings queries.
GitOrigin-RevId: 8a02e9513793c85cbc833d1b17d12bdbc6b416cb
2018-05-03 17:16:04 +03:00
levlam
fc4d401eb6 Better is_dialog_inited.
GitOrigin-RevId: ba385e0322e831362a612259c4315faf7338c14f
2018-05-03 16:29:33 +03:00
levlam
a37dfc406b Delay before sending read history request to server.
GitOrigin-RevId: 5452973469e6142cefa00d063ceef36add728f14
2018-05-03 15:36:05 +03:00
levlam
a82dfe4735 Remove allow_error from ReadHistoryQuery.
GitOrigin-RevId: 7f285eb790f55b3bcdddc5c912a1c1cb094719e7
2018-05-03 14:13:55 +03:00
levlam
821bc642cf Update layer 78.
GitOrigin-RevId: 8aac14c20fc90c6a0b118fbbe80d4b83034416a2
2018-05-03 13:18:07 +03:00
levlam
de0614891d Fix g++ CE and warning.
GitOrigin-RevId: 14b43cc16c2eac069bb19b6fe5a6adb964068970
2018-05-03 12:00:35 +03:00
levlam
1b64400167 Read chat history while scrolling.
GitOrigin-RevId: 0795d97634a7420d2d3784304ae314cd075ac1d5
2018-05-03 11:57:19 +03:00
levlam
5b1b1273b4 Implement calc_new_unread_count_from_the_end and repairing of server unread count.
GitOrigin-RevId: e11417e08db93814f3093677c60482fb14acbc53
2018-05-02 13:30:52 +03:00
levlam
6a3241dc12 Add dummy calc_new_unread_count_from_last_unread.
GitOrigin-RevId: eb66e452c3e99344180493491d588e0871b3fd91
2018-05-01 21:12:00 +03:00
levlam
eeb94af4df Refactor calculation of unread_count to calc_new_unread_count.
GitOrigin-RevId: f4cdce4e37db8d368074cb10dad13fef74b73dbf
2018-05-01 20:13:36 +03:00
Arseny Smirnov
d28a98ac38 bugfix
GitOrigin-RevId: acc271923c40176671e846d420c8883304bc9126
2018-04-30 20:38:30 +03:00
Arseny Smirnov
efc5cbb8ad Mtproto secret support
GitOrigin-RevId: 3efeb3f309b76074d6581d68e9a9b20df79e82ae
2018-04-30 20:01:18 +03:00