Commit Graph

1291 Commits

Author SHA1 Message Date
Arseny Smirnov
591bfc542f Drop session when we have to ignore a packet
GitOrigin-RevId: 2c6cc5bb4a022f0d7701cd8d7f8d3e4530191fc7
2018-12-07 00:01:55 +03:00
levlam
c2a873db4b Add test for decreasing local_size.
GitOrigin-RevId: 4dbfd8e0ffd105cb2f87a64bc5d6c0d8112ddcc3
2018-11-21 13:56:14 +03:00
levlam
16707b0602 Minor improvements.
GitOrigin-RevId: 25ac84d8020557804fc89845e9764c3d50b098d3
2018-11-20 20:52:42 +03:00
Arseny Smirnov
c6dd53a76e Session: set_online for nonmain connections
GitOrigin-RevId: 9bcfcdbaaf2440a307f221ab07aa650c449c3d26
2018-11-20 16:07:27 +04:00
Arseny Smirnov
fffe644aaa Connections creation debug
GitOrigin-RevId: 1f906a0c00464ff7bdfcfc41932b39733bab6780
2018-11-20 13:09:52 +04:00
levlam
be92820691 Use online_update_period_ms option.
GitOrigin-RevId: 8354e248ff424d4bed7eb474521bdd2c9685f522
2018-11-08 16:06:17 +03:00
levlam
a3049fa4b4 Add debug logging.
GitOrigin-RevId: 6f1bf40ff7388359a95f14584bc54780df67b30a
2018-11-08 14:00:30 +03:00
levlam
95ff033aae Silence 401th error for ordinary users.
GitOrigin-RevId: 3a371adef8cfc50609a9320c43a0c8cf5d9dd403
2018-11-07 21:26:21 +03:00
levlam
f005966752 tg_cli: fix "reset".
GitOrigin-RevId: f0c1522ac80d4ee65f4567a32ccf6ba87aa7f694
2018-11-07 00:09:05 +03:00
levlam
69d9173dcd Minor Slice usage improvements.
GitOrigin-RevId: 44ceed78dfc3ec459a0c40b6863d1d6ffd863a64
2018-11-06 23:25:09 +03:00
Arseny Smirnov
a80e0621e4 FileManager: FILE_GENERATE_LOCATION_INVALID
GitOrigin-RevId: bc66c7e63376a3aca0bdcaf1d7f8cbb57e32eb53
2018-11-06 19:02:19 +03:00
levlam
2c6bd673c7 Use as_slice<Int> if possible.
GitOrigin-RevId: 931b5609e2eae0d5655287e84a71724f07d4090c
2018-11-06 19:00:03 +03:00
levlam
ac9e1da20e Add as_input_document debug.
GitOrigin-RevId: 8b005c0f7e8752d2a5aa9cf85f166a7696484056
2018-11-06 17:24:32 +03:00
levlam
fc3906299c Better replace document flags.
GitOrigin-RevId: 1b0e6575bd63b8125e5e96faeac1832b088b1cea
2018-11-06 14:37:07 +03:00
levlam
e533f55efe Add missed actor verbosity.
GitOrigin-RevId: 25aca1f628f5559fb449d4d63bbf9478785ea15d
2018-11-06 10:00:34 +03:00
Arseny Smirnov
7471e62740 Destroy authorization keys: fixes
GitOrigin-RevId: 9538efa2deadda91c18c1c97aa22281597a44d4b
2018-11-06 14:06:08 +03:00
levlam
34a26188c6 Disallow switch_inline_query in channels.
GitOrigin-RevId: ad18c78f9abf4114ae72229f1b2f863f13ccba7a
2018-11-05 14:29:43 +03:00
levlam
b1d563719a Simplify should_open in SessionProxy.
GitOrigin-RevId: 5bfa92ed175468d5a247780b73d643735427637c
2018-11-04 13:53:57 +03:00
Arseny Smirnov
130456a3bb SessionProxy: rewrite session_open conditions
GitOrigin-RevId: 3a5757fdec567451671143937b5b942610f5ecdc
2018-11-03 09:33:22 +03:00
Arseny Smirnov
c610593e75 SessionProxy: bugfix
GitOrigin-RevId: f6874238d3aa79e980b3365dc19d9e9e0f0f3c22
2018-11-02 18:55:55 +03:00
levlam
32fc43655a Better DeviceToken documentation.
GitOrigin-RevId: 57a792b600ef0f98d93d1e325efba4b8c1e19a7a
2018-11-02 17:18:46 +03:00
levlam
5d5c55596e Minor improvements.
GitOrigin-RevId: 2f2099d91867ec302ff2d9426b6b088c8c625720
2018-11-01 20:08:20 +03:00
Arseny Smirnov
03604bb367 SessionProxy: bugfix
GitOrigin-RevId: b2cdc985d4465cdd19f85d024a5de9d8e882e8f0
2018-11-01 19:34:18 +03:00
levlam
1cb68fab96 Add mtime only to absolute original_path.
GitOrigin-RevId: 379ab8f47b8f2e4e6bf930977bfae8e26cf5fc60
2018-11-01 18:54:08 +03:00
levlam
ecaaae62ef Fix mtime in generate location.
GitOrigin-RevId: 70235d7f9c0e21fdcb555a678f13afbfabf3767f
2018-10-31 21:11:02 +03:00
Arseny Smirnov
27770ce060 Destroy mtproto keys on logout
GitOrigin-RevId: 8ac2bafd2d1897dc0942a33d8406ea8c2e5dfaa7
2017-12-29 23:34:39 +03:00
levlam
abbb1a42a7 Static execute in JSON interface.
GitOrigin-RevId: 58748f011a6def1d81e11063e9a15f5a8750174e
2018-10-31 17:51:07 +03:00
levlam
035e4a69ed Improve iOS README.
GitOrigin-RevId: 5141bd0bb172f72c7cda70dba249d4c3f0d90849
2018-10-31 15:15:16 +03:00
levlam
6b3b190037 Add logging to Client::receive.
GitOrigin-RevId: 2cb36c61e186a0e598dd5ce3a330d1a0baa884c3
2018-10-31 15:09:25 +03:00
levlam
b886016254 Move Connections logging to INFO.
GitOrigin-RevId: a85aab69d18f4ef25d0853977a44d1a6cea695fd
2018-10-31 13:54:06 +03:00
Arseny Smirnov
f788c1e917 FileManager: add #mtime#<mtime># prefix to generate conversion
GitOrigin-RevId: 4253d68e4f7878d871f53e0bbcf77633258cc946
2018-10-30 17:25:31 +03:00
levlam
bc88b8e951 StringBuilder fixes.
GitOrigin-RevId: 1836df5f6931ca94e96e7281eeb1090163d8648f
2018-10-30 17:22:44 +03:00
levlam
53ecae8b0a Add dialog_id to on_load_dialog_from_database.
GitOrigin-RevId: 4c5d84b580ce716be7b14e2ea3a4321434dd97f9
2018-10-29 20:16:31 +03:00
levlam
51eec319b8 Fix some includes.
GitOrigin-RevId: 4c81e2fd0101f3c5bb23912681e7d02a60da5622
2018-10-28 20:30:47 +03:00
levlam
6a402ee0a3 Add temporary binlog fix.
GitOrigin-RevId: bf91645a6646f39fdbd36ac1351fdce2ae5b7763
2018-10-28 18:21:35 +03:00
levlam
34f5f96afd Add debug.
GitOrigin-RevId: d1a4df496847f44fa412dd0e0ac071b460bdf5d2
2018-10-28 18:21:27 +03:00
levlam
ccd96d92f2 Fix option name.
GitOrigin-RevId: e7203a982032d7c9f2e53605e8a14a90b0f61d9f
2018-10-27 03:15:55 +03:00
levlam
2fa81be614 Increase version to 1.3.3.
GitOrigin-RevId: 9e23e18639ee02bd2bddd6c4dc813dc516c3dd53
2018-10-27 03:10:08 +03:00
levlam
7d6f9c493b Add debug.
GitOrigin-RevId: aefa536bc203096a37709fa2ae5d478cfe65770e
2018-10-27 02:58:31 +03:00
levlam
8de6d7484f Fix call to PEM_read_bio_RSAPublicKey.
GitOrigin-RevId: 099e4b08a21f1d6788751222f7c98a6ab696eb49
2018-10-27 02:51:27 +03:00
levlam
b9cbd43e96 Add check for invalid DialogId in database.
GitOrigin-RevId: ac28b2afb276743fe203a25f53e0ff69e4e3e08d
2018-10-26 18:36:53 +03:00
levlam
4a8ba5075a Add EncryptedInputFile constructor.
GitOrigin-RevId: 9b65eebb5103753a4ceb163f0321361001686bfc
2018-10-26 18:04:04 +03:00
levlam
28bfa4c4a6 Fix some MSVC Analyzer warnings.
GitOrigin-RevId: f62e8173ae9a5b78818f6575548ce22d4aa5c51d
2018-10-26 17:11:20 +03:00
levlam
5368c96a41 Add parse_message function.
GitOrigin-RevId: 8bada6f99333add3548317ccca2ca4b5c8bb2136
2018-10-25 18:00:49 +03:00
levlam
2ca74ffacf Add debug.
GitOrigin-RevId: 777b78434c43fc443c980c1b8859184ffe0bce17
2018-10-25 15:49:30 +03:00
levlam
1e1bc31d9e Add debug.
GitOrigin-RevId: 2a662b7db120e83ee2b2bd64c8b9ac701c619a89
2018-10-24 23:03:48 +03:00
levlam
923cf40de6 Possibly fix random_id_to_message_id correspondence.
GitOrigin-RevId: 279fc911a03342796a2200b1edad5f27726be5fd
2018-10-24 22:53:31 +03:00
levlam
043602bfc2 Add {add,delete}_random_id_to_message_id_correspondence functions.
GitOrigin-RevId: 7701ea29659c355da408e97bf642529113e9d7ff
2018-10-24 22:49:50 +03:00
levlam
54ec85ff22 Add missing Logging.* files.
GitOrigin-RevId: d1aec3ed0c54ee93b69fffc930b2ebe2665356cf
2018-10-24 22:15:55 +03:00
levlam
f571a79f13 Add more debug.
GitOrigin-RevId: 2c1b631964547b2b5ba9440bb41af1ae65d5b1cf
2018-10-24 22:15:32 +03:00
levlam
de72a4e811 Add debug.
GitOrigin-RevId: fe72382facc645f11584329c7dab827ad53cb8c0
2018-10-24 22:06:13 +03:00
levlam
ed53b1a819 Better error message on broken database.
GitOrigin-RevId: 3f26c55916d5dcdf0b53993d82b61b5fa7ee56ac
2018-10-24 21:48:37 +03:00
levlam
7b0d468aeb Init call in phoneCallAccepted just in case.
GitOrigin-RevId: 152e8564bceb3316c730a3a145120b508874aefc
2018-10-24 21:44:14 +03:00
levlam
954405313a Fix is_call_id_inited.
GitOrigin-RevId: 07e3c7e8eca28f0741032d0dc69f2a1f38f3f071
2018-10-24 21:38:48 +03:00
levlam
2897a3b431 Add source to get_input_phone_call.
GitOrigin-RevId: 8bda7b246c8d15ad56de259f3f8d61f1c87f389c
2018-10-24 21:37:12 +03:00
levlam
94d28ab263 Fix wrong check for call_id.
GitOrigin-RevId: d44c4f5c67ddc59d09f741f2d7f2d0d94ee2365a
2018-10-24 21:33:06 +03:00
levlam
3bd2eb547e Add on_send_message_success debug.
GitOrigin-RevId: a2c4ae66baa7d0aa1b2b1a96771d06bb138822f2
2018-10-24 21:11:56 +03:00
levlam
fccd0c39eb Make Client.Execute static in C# binding.
GitOrigin-RevId: d31bf0d0e6fcf2a762d209f6d62127bd6eaa09e7
2018-10-24 20:23:47 +03:00
levlam
44d21ecc4a New API for managing TDLib logs.
GitOrigin-RevId: 60f520027bf16f53b927c72d0151884fda64ebbc
2018-10-24 18:42:40 +03:00
levlam
4852e2940b Fix new verbosity level in td_api::testSetLogTagVerbosityLevel.
GitOrigin-RevId: 1c61e124f711c87cdfe76ef76e332785a59a9ed2
2018-10-23 17:01:56 +03:00
levlam
92fbabbe1a Fix call to get_channel_difference.
GitOrigin-RevId: 4594b60bbdceacded2f540ccc6a3c0d9fc5c16c6
2018-10-22 18:19:39 +03:00
levlam
d992c895d0 Ignore unsuitable bots in getTopChats.
GitOrigin-RevId: a669a09cddc1bd1e2f5fce7483346aad27ddc6e4
2018-10-22 16:47:41 +03:00
levlam
00c5033386 Add more checks for message validness.
GitOrigin-RevId: 5bc63465eb68b305f9b60a3b73c9669386d045e6
2018-10-22 02:01:55 +03:00
levlam
5b603d0dd7 Fix misprint.
GitOrigin-RevId: 22e684341c9484d9f02696651cc3997983992cc8
2018-10-22 02:00:34 +03:00
levlam
7d751220a7 Fix warning.
GitOrigin-RevId: f4f9e41fae377de204eadfbc45408703a3d7c384
2018-10-21 05:11:56 +03:00
levlam
81890f309f Workaround clang ICE "ran out of registers during register allocation".
GitOrigin-RevId: d977f131b117c3d3907e505c6245ff587b7c6db0
2018-10-21 01:36:26 +03:00
levlam
776ab59c8d Exclude sponsored chat from unread counts.
GitOrigin-RevId: 3bf1951938b6cf2c7f9a9e3b4c67554c8202f9fe
2018-10-14 02:51:35 +03:00
levlam
b7a779db3b Add get_update_unread_*_count_object functions.
GitOrigin-RevId: 9f5c53acaad72ad7288882691232f7e7c85d8127
2018-10-09 17:12:10 +03:00
levlam
6dbef6ef76 Fix returning invalid Unicode from parse_html.
GitOrigin-RevId: 9277022a53d23ac5c3eb1427eb48bd886b789d09
2018-10-09 16:27:40 +03:00
levlam
041896ab8d Copy notification settings to newly created secret chat from private chat.
GitOrigin-RevId: 5c2e0a7eba59f41fcdbe70ab134299620250e907
2018-10-08 23:42:24 +03:00
levlam
f2298ce27d Fix errors handling in some ResultHandlers.
GitOrigin-RevId: 5aa4c8b7d53fa55ed6a750e3815ff1337cb5ebcd
2018-10-08 22:18:44 +03:00
levlam
872cf6e10d Add local locking to FileFd::lock.
GitOrigin-RevId: 4ad3e15f9952b1c68c879182a0f10dd5cad270f3
2018-10-08 21:18:06 +03:00
levlam
286c5040c1 Do not fail old messages sent to chat with self.
GitOrigin-RevId: eb88cd12fb29a32c6088c6284babe73a3ad71e01
2018-10-08 17:28:06 +03:00
levlam
2540555ae5 Remove source from get_my_id.
GitOrigin-RevId: 623c24323b55937866841c4b0f32b109c513983b
2018-10-08 17:21:56 +03:00
levlam
1b0c7d889d Add MessagesManager::get_my_dialog_id.
GitOrigin-RevId: 2e1e88a171a5ad86186136ef2d6f49d725ce5d09
2018-10-08 17:13:09 +03:00
levlam
41ed585aa2 Fix deleting old data when database is dropped.
GitOrigin-RevId: 0dae9d82c02bf3f45d3ebd37b86e5765887020b3
2018-10-08 16:29:44 +03:00
levlam
03d842194e tg_cli: prevent logging to default_log_interface after closing.
GitOrigin-RevId: f1cb27cd5b5a4af4d46b7ed69e87d43ad5a9f103
2018-10-08 15:59:14 +03:00
levlam
806e570a72 Add source to next_utf8_unsafe.
GitOrigin-RevId: e8e5a47096461c0e76a64eb26cb848651d4d61e8
2018-10-08 15:53:05 +03:00
levlam
08f04112af Fix calling Localization methods before authorization.
GitOrigin-RevId: 49ab08469f8e67b788fdb8fbe8c28514dd85e488
2018-10-08 15:01:09 +03:00
levlam
a26266f336 Improve logging in send_update_new_message.
GitOrigin-RevId: abe4f4c0d1e1d515b01746ba4ef8129bef65083b
2018-10-08 01:00:34 +03:00
levlam
ab2255f9b1 Add MessagesManager::need_unread_counter.
GitOrigin-RevId: 10223c628cd69ec31dfc0d4bdb56078dab234354
2018-10-08 00:28:03 +03:00
levlam
0c64b2cf9c Fix some spelling.
GitOrigin-RevId: 99848b019fce855bf50380ce6ffc2865a007161d
2018-10-07 23:40:58 +03:00
levlam
e7b69c9419 Fix get_pinned_dialogs in presence of sponsored chat.
GitOrigin-RevId: 842d022a1c47856a724f476e4f27236487aee62b
2018-10-07 02:59:30 +03:00
levlam
cd2e596b50 More MessagesManager refactoring.
GitOrigin-RevId: b458c10b0a59704a07030fe4b8dd4891051cd52c
2018-10-02 02:40:34 +03:00
levlam
e07ab63768 Add save_*_logevent methods.
GitOrigin-RevId: 5043948638752fe85d327be5143e79c372438ec9
2018-10-02 02:01:17 +03:00
levlam
21ac4d41d1 Add MessagesManager::send_get_scope_notification_settings_query.
GitOrigin-RevId: d4bc141bb3d5e730427cc07df21d82461312db74
2018-10-02 01:30:03 +03:00
levlam
4d8a832b7d Reduce more cpp source code interdependecies.
GitOrigin-RevId: e80ac4246299a5a3bf515977c24d281055fcadb6
2018-10-02 00:24:45 +03:00
levlam
5ad403a932 Move static functions from Td.cpp to Td::.
GitOrigin-RevId: f1388a1fa9e43165228eb5efc524401b9065f15f
2018-10-01 23:18:05 +03:00
levlam
b3a992a156 Remove unused class.
GitOrigin-RevId: 441411011e32e38115be51e7568d5ac50328d254
2018-10-01 19:35:21 +03:00
levlam
dbcbacea9a Fix getAttachedStickerSets for photos.
GitOrigin-RevId: a96584c9cc797f7e15d850af0a5c4c5d73b3d1ac
2018-10-01 14:34:42 +03:00
levlam
43d8728829 Move some templates implementations to Td.h.
GitOrigin-RevId: e6068e9abd1f1f993a61cf0b1fe27bfab8fa64ec
2018-10-01 05:22:56 +03:00
levlam
4ab14b620a Move RequestActor to RequestActor.h.
GitOrigin-RevId: 50b21b9832f0a9871f6c2fc54ab45818b04258b8
2018-10-01 02:26:06 +03:00
levlam
ad81123d60 Make CallsDbState private to MessagesManager.
GitOrigin-RevId: b1d4b01abff4a534765e3fc52b07db7bd9d07def
2018-10-01 01:34:06 +03:00
levlam
514d84e3ab Update version to 1.3.2.
GitOrigin-RevId: 27d08b1ae337ec36af5a52edd008dfc52bcb17fa
2018-09-30 02:50:12 +03:00
levlam
d452a35d75 Fix type of "enabled_proxy_id" option.
GitOrigin-RevId: 2243cf9007766e91f94dc81e9a965e0a322612a6
2018-09-30 02:24:56 +03:00
levlam
5caac7f47a Move get_log_verbosity_level inside Td.
GitOrigin-RevId: 70f6e9a9dae625b0fe3b0927ea227a19e58e18d2
2018-09-29 07:04:28 +03:00
levlam
091d7143e3 Fix includes.
GitOrigin-RevId: 68b59141c12d6e24ddaf0fa48008bf58935bd818
2018-09-29 04:41:15 +03:00
levlam
0d31fb4e2b Add DialogDate.h.
GitOrigin-RevId: cbfc7cea409685d8e04e37c856fa30b8b361ba0d
2018-09-29 03:39:27 +03:00
levlam
79a613cf45 Move NotificationSettings to separate header.
GitOrigin-RevId: cb0c2e33a0a075dfea2b70ff671de8db0db36ca0
2018-09-29 03:29:57 +03:00
levlam
b6a8624c60 Move DraftMessage to separate files.
GitOrigin-RevId: acf4722d7c1328ee4048f8ca162060923e0be6fe
2018-09-29 02:45:43 +03:00
levlam
4cf6aba717 Move MessageContent and InputMessageText implementations to corresponding files.
GitOrigin-RevId: d308007a3c850f1969b64a08865787ee7b340b34
2018-09-28 23:57:34 +03:00
levlam
362fc331c7 Add get_message_content_deleted_user_id.
GitOrigin-RevId: fe1c4db7920238eb623d5557277472af93523ca1
2018-09-28 19:22:30 +03:00
levlam
58b724c5c0 Add get_message_content_pinned_message_id.
GitOrigin-RevId: ab4fcbe42fdcb177575cdc167a446ea6b334f331
2018-09-28 19:16:03 +03:00
levlam
6539fbcff6 Add get_message_content_new_participant_count.
GitOrigin-RevId: b4c884cdd8d947af3a5a8a3263da2b3bc547be4d
2018-09-28 19:07:14 +03:00
levlam
d5683ee224 Static create_text_message_content.
GitOrigin-RevId: 9def379214c944dce0d42c2fcf08198a49ea1db5
2018-09-28 18:48:03 +03:00
levlam
c061da558b Make create_input_message_content static.
GitOrigin-RevId: ca85aeed0a712ddaff7f44d14f75d119f0feb3b0
2018-09-28 17:50:02 +03:00
levlam
09beaef806 Make process_input_message_text static.
GitOrigin-RevId: 3e7989ecb8ba90da7324748022ebc77b3ebc7660
2018-09-28 17:39:07 +03:00
levlam
12a21587ab Add MessagesManager::get_input_caption.
GitOrigin-RevId: 4145fde2f54092c358c49fc891707186cca277f3
2018-09-28 17:21:05 +03:00
levlam
bfde2f0e32 Add MessagesManager::create_input_message_content.
GitOrigin-RevId: e230e6c6069777e05dde34230492981846064646
2018-09-28 16:59:29 +03:00
levlam
99862b4834 Make create_inline_message_content static.
GitOrigin-RevId: 59768937beb97c7ecb0571f2a28b950e59fd9992
2018-09-28 13:57:56 +03:00
levlam
10e4f008b8 Return pointer from get_message_content_text.
GitOrigin-RevId: c1556ee6e58e13e574881585f889744c4be1d4a4
2018-09-28 05:09:28 +03:00
levlam
4451d8d2ed Add add_message_content_dependencies.
GitOrigin-RevId: 10c2cafe4de13907cad62c7f5df55f008fffbc94
2018-09-28 04:29:55 +03:00
levlam
4597689060 Add Dependencies.h.
GitOrigin-RevId: 791b4dc804a8c0b734b027ff348b16bbfceede5c
2018-09-28 04:21:20 +03:00
levlam
144816b469 Add static {g,s}et_message_content_web_page_id.
GitOrigin-RevId: 98d95d47e0e1d01ed42be3eede01650474e138d9
2018-09-28 04:10:44 +03:00
levlam
cb9e935dee Add static merge_message_content_file_id function.
GitOrigin-RevId: 0f43afe01427e71bb0496b877a857974148b1029
2018-09-28 03:38:45 +03:00
levlam
9b9ea5c58c Implement on_update_sent_text_message using merge_message_contents.
GitOrigin-RevId: 823a468eb953686ce3ecbcbfe0eab78513aca36e
2018-09-28 03:15:12 +03:00
levlam
9ec9377815 Make more functions static.
GitOrigin-RevId: 70c3e1fee2af9620ef61e4d337ba8126ca41634c
2018-09-28 02:16:49 +03:00
levlam
8236bb8c0e Seaprate static method for merge_message_contents.
GitOrigin-RevId: 7228109e708462483b73e46ed5dc60631f0e0420
2018-09-28 01:39:12 +03:00
levlam
02893fff41 Make most MessageContent-handling methods static.
GitOrigin-RevId: 31d8d7e25c835afbab2a65e649b2a533902b0223
2018-09-27 22:44:40 +03:00
levlam
c1f4e9d292 Make get_*_duration const.
GitOrigin-RevId: 85b5eb4cb221c2144318989d4d93b45784adcdf4
2018-09-27 21:14:32 +03:00
levlam
073541718d Separate method for InlineQueriesManager::create_inline_message_content.
GitOrigin-RevId: 6ea0152a182ef09cc1960f1fd16b081c1654dc1e
2018-09-27 20:23:48 +03:00
levlam
6ac930139b Const-correct unique_ptr.
GitOrigin-RevId: 938cf4b0261cfea123066ae1fc4197754da11e68
2018-09-27 19:51:45 +03:00
levlam
b3bae546ec Various fixes.
GitOrigin-RevId: 52699dbd5280b63c6bb32da44ea5bfa3157a7922
2018-09-27 16:37:15 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
83be04a5f4 Fix caching of passport secret.
GitOrigin-RevId: 72abee3b842afc5ef8f5e5c63322d89090b98909
2018-09-27 01:48:12 +03:00
levlam
875541b673 Fix misprints and improve logging and errors.
GitOrigin-RevId: d8a48fc5e5427a20fcfa932f928f37a58df2cdfd
2018-09-26 18:48:14 +03:00
levlam
eb4c85a797 Fix CE.
GitOrigin-RevId: 0bb7986447b8c9fcdc80b8caf1feb03f8a945d90
2018-09-26 03:54:37 +03:00
levlam
b7c2248c72 Add td_api::testSetLogTagVerbosityLevel method.
GitOrigin-RevId: 763fcf9156671857c71967741b9ce8c67f4a7ea0
2018-09-26 02:59:29 +03:00
levlam
a3b6aca07d Speculatively update cached channel administrators.
GitOrigin-RevId: b30a7bbf1ec74a446bf77245772236b94be135cb
2018-09-25 18:32:39 +03:00
levlam
ca58d36d4d Return parent type from tl_object::fetch to reduce number of unique_ptr types in header.
GitOrigin-RevId: c2bfa4b2879c8ee3a0feda50fca605a58673cc87
2018-09-25 06:26:36 +03:00
levlam
f404f7799b Move TL object fetch to cpp.
GitOrigin-RevId: 8700426caa00ca34be9716b9875cd4c87f8dc51f
2018-09-25 05:24:32 +03:00
levlam
7b5e6b9362 Split td_api::getPassportAuthorizationForm into two requests.
GitOrigin-RevId: 77fc44704061109014b522d9396935ac47e4f6f9
2018-09-25 05:12:41 +03:00
levlam
81c0afafa3 Allow limit == -offset in getChatHistory.
GitOrigin-RevId: 8a050a75c0428304bb61c36a2c284b6309c6a8ea
2018-09-24 04:25:24 +03:00
levlam
86bc53bb0e Fix usages of full_split.
GitOrigin-RevId: 17a750e4a9a7add83302694ad2e8771bf8ed6199
2018-09-23 02:46:09 +03:00
levlam
4ec1765b41 Add typedefs to tl::object_ptr.
GitOrigin-RevId: c696935b7a576b15795ba9b2d8db56aa5d734471
2018-09-22 14:45:52 +03:00
levlam
8610734232 Fix full_split.
GitOrigin-RevId: 0204740d8ba45faf9f2da5ddca7323c88287a160
2018-09-22 14:24:02 +03:00
levlam
9c9ee999c4 Simplify InlineQueriesManager::get_inline_message_content.
GitOrigin-RevId: bf32b2756b899513afa6d935820d5ad37d158267
2018-09-22 03:47:40 +03:00
levlam
a23d62905b Better MessageContentType output to StringBuilder.
GitOrigin-RevId: f755a36dc462db448a7ca584f8e061b161d3defd
2018-09-22 02:29:33 +03:00
levlam
a4d5cc9419 Fix warnings.
GitOrigin-RevId: 19e068a8579356722d116a7646980cf580721b7a
2018-09-22 02:15:13 +03:00
levlam
b11542ce6a Rename MessageContent.get_id() to get_type.
GitOrigin-RevId: 3f718e571537875b66c9886d71cfc5c66213c8a7
2018-09-22 00:51:29 +03:00
levlam
946b46ad8c Strong typing for MessageContent type.
GitOrigin-RevId: b89a431f6252ec47ebf2c3653eafbf71abbd7678
2018-09-22 00:33:41 +03:00
levlam
f08c0180b4 Const-correct tl::unique_ptr.
GitOrigin-RevId: b72a92a7169973c2d95e410cfbfed668a412e7e7
2018-09-21 20:52:22 +03:00
levlam
eba99a8957 Fix tl::unique_ptr.
GitOrigin-RevId: 1a8cf83048e27435ce44adef8ee2123724d4fc23
2018-09-21 20:13:32 +03:00
levlam
dd9964ae3a Don't crash on nullptr passed to td_json_client.
GitOrigin-RevId: b064ab5d839a5747d9bf1d289238fa77da219585
2018-09-21 16:41:22 +03:00
Arseny Smirnov
db218463d1 Use custom unique_ptr as tl::object_ptr implementation
GitOrigin-RevId: a41545d97fa2be34553b6b8e7fa03ada730cbe87
2018-09-21 18:34:18 +03:00
levlam
5322a65c1b Remove unnecessary static_cast.
GitOrigin-RevId: df5259458cd0d8d4a1b72da6950ea39553979c68
2018-09-21 11:26:35 +03:00
levlam
1362f0bd0a Make ContactsManager::get_current_state const.
GitOrigin-RevId: b86cb9e05bed37fff06c77f235fc3039c8626334
2018-09-21 10:34:15 +03:00
levlam
e086b4f740 Add MessagesManager::get_current_state.
GitOrigin-RevId: c5bcea8ae60503a50ab9707b61fcc082ebc89f79
2018-09-21 10:15:07 +03:00
levlam
8e0f49dc62 Support updateTermsOfService in getCurrentState.
GitOrigin-RevId: b12f653432e0ee5b9ed3c7a7e8cb39e6dec7800b
2018-09-20 23:08:55 +03:00
levlam
e1812c6531 Add AnimationsManager::get_current_state.
GitOrigin-RevId: 77349703eb55cf61b13941dba7bd513068c8519c
2018-09-20 22:38:19 +03:00
levlam
f9de09833c Add StickersManager::get_current_state.
GitOrigin-RevId: 52c53d43d72150d297f2c511c0e49cb83d22b873
2018-09-20 22:25:09 +03:00
levlam
f8894dbff9 Add ContactsManager::get_current_state.
GitOrigin-RevId: 108cab6899368e264684aab79d488384be968e48
2018-09-20 21:37:35 +03:00
levlam
b2f9a33832 Send option "version" before all other updates.
GitOrigin-RevId: 6f9e36dd474ce191ff53a91aafeb95c8792aa300
2018-09-20 20:41:22 +03:00
levlam
db14b2da4e Add dummy td_api::getCurrentState.
GitOrigin-RevId: 31ea0cfdc0c715fec52ef27340bed7358b13e042
2018-09-20 19:33:41 +03:00
levlam
2c5ce9591d Fix td_api::setOption.
GitOrigin-RevId: d8974fa15c882d3a90ec9f5574f64c70957e547a
2018-09-20 15:07:01 +03:00
levlam
4b2e3619f7 Use fail_send_message directly if possible.
GitOrigin-RevId: f537f3f2517a7775d5714e38b57a7ce11b2042f6
2018-09-19 19:59:23 +03:00
levlam
91950e9452 Fail to forward old messages after restart.
GitOrigin-RevId: 948954d3f6b9e3c7c4a8479233c95115cc676620
2018-09-19 19:43:01 +03:00
levlam
dccef30582 Automatically fail to resend very old messages.
GitOrigin-RevId: 6c39972e266b8be8be74f25de63a0008317de42e
2018-09-19 19:18:10 +03:00
levlam
29e65aab4a Add file_index to td_api::passportElementErrorSourceFile.
GitOrigin-RevId: d77d21361dfece0867bfe880d93aa9c8a2898ac9
2018-09-19 03:00:29 +03:00
levlam
900eab129b Make Binlog helper template functions non-static.
GitOrigin-RevId: db82e3468f8bf3e1bd0835721c57a72c97a0b859
2018-09-19 01:35:45 +03:00
Arseny Smirnov
2766e7d16b emscripten: td_get_timeout
GitOrigin-RevId: 920dac2d11ed999019e7faafe47cadf96d06900f
2018-09-18 16:43:16 +03:00
levlam
66d5c69453 Make dates parser more flexible.
GitOrigin-RevId: 470fa8cec93b036ae586ba390a14ed6b3dd1149c
2018-09-17 21:49:26 +03:00
levlam
7c447551fb Add enabled_proxy_id option.
GitOrigin-RevId: 3153f71d13740429a9153205e96329e49e82b91f
2018-09-17 21:15:11 +03:00
levlam
144b46ec3b Fix Address.postal_code to/from JSON.
GitOrigin-RevId: 757d34d4c79023a9c1503b8075f0a0471673a87f
2018-09-17 21:07:26 +03:00
levlam
e1415facf2 Allow to call getStorageStatistics before authorization.
GitOrigin-RevId: f801124c6e2646a165a1951598efcba71cc1cc38
2018-09-17 20:48:05 +03:00
levlam
2d05be04dd Follow new server-side limits on first/last name and title length.
GitOrigin-RevId: 89fe4eb85c42859974142fd163ea9fd062fde459
2018-09-17 07:00:19 +03:00
levlam
10063f39f4 Fix inheritors of TdCallback.
GitOrigin-RevId: a356594a86e79118dc32b1a09b0c4747dd331c59
2018-09-15 19:33:27 +03:00
levlam
b480409927 Do not allow changing of some options by unauthorized users or bots.
GitOrigin-RevId: 0a86c99779a8df3e300ae798c0e0f46b1c7fe813
2018-09-15 15:52:03 +03:00
levlam
559b20840a tg_cli: support for proper closing.
GitOrigin-RevId: 904b5a87c64bdd2d097a8a81f7c39bd31063097b
2018-09-15 15:24:25 +03:00
levlam
5dfeb9adf4 Fix CE.
GitOrigin-RevId: 762719f8093a862b93bd77c1e8e28d7feb4486e0
2018-09-14 23:03:26 +03:00
levlam
47bf1bf060 Remove explicit inline specifier on template functions.
GitOrigin-RevId: 196841ba4ace538853e42f8e1be908f6d6f38b00
2018-09-14 21:41:03 +03:00
levlam
c081f6c79c Rename scheduler_ field to concurrent_scheduler_.
GitOrigin-RevId: c760e0fab2ed8c1d93d32260f4a1d9b9b70359d9
2018-09-14 21:40:33 +03:00
levlam
7b2684b3ed Add "me" to example.
GitOrigin-RevId: 945f8ca30b3ca9f8667d4f481d5bd7070c9b2fcd
2018-09-14 21:03:36 +03:00
Arseny Smirnov
da118270bd Remove TdCallback::on_closed
GitOrigin-RevId: e08d6c10e4147c39f2d6f5ea795f92875644f1a7
2018-09-14 19:58:13 +03:00
levlam
03a11bc2ec Client improvements.
GitOrigin-RevId: 85b45a31fbb7b7b84a87d3951086332d750de01c
2018-09-14 19:35:34 +03:00
Arseny Smirnov
5ee113439f Simplify Client.cpp
GitOrigin-RevId: 1a109f7f08dc73123b5d4fb7bfb4c75c19419f9b
2018-09-14 16:14:40 +03:00
levlam
7e2053fcf5 Fix some includes.
GitOrigin-RevId: 3e3323045c44976ceea99b218d6806d3c836bbf2
2018-09-14 01:00:21 +03:00
levlam
95808d2230 Add debug.
GitOrigin-RevId: dc68c9353478ff31fb9ffdfade356c3770b6fbc4
2018-09-13 23:06:59 +03:00
levlam
b4a287068f Remove InputQueue from Client.
GitOrigin-RevId: f3e4a39b13c99926e9f75b4f9b678a30c6150ac8
2018-09-13 22:42:03 +03:00
levlam
56f5f4e263 Simplify reader_wait and fix some includes.
GitOrigin-RevId: 32a91a6aa25934b2eeeddd99470a24871f38d219
2018-09-13 21:22:25 +03:00
Arseny Smirnov
02e83aad78 EventFd: wait
GitOrigin-RevId: 1ae5d1c3d1316a7c5a868c4246b406182915b399
2018-09-13 16:27:09 +03:00
Arseny Smirnov
9225edd757 Fix Client.cpp
GitOrigin-RevId: bf4de7283b1d5a4b230c20cae1f7b0d2bb89c919
2018-09-13 14:55:55 +03:00
levlam
86ef95e0a8 Fix CE and some includes.
GitOrigin-RevId: e181d67a6ed36c9cbd444cf2282902b6a90881be
2018-09-13 06:08:49 +03:00
levlam
f207b1eed4 Update version to 1.3.1.
GitOrigin-RevId: 2311e7c80565133d1d95cdf92dd234232ee5c88b
2018-09-13 03:15:06 +03:00
levlam
ed33e23c40 Make pread and DataView const.
GitOrigin-RevId: 4267ba93a1e83be55361c9f284f717151eb740cd
2018-09-13 03:12:40 +03:00
levlam
a4f98024a0 Add date to user profile photos.
GitOrigin-RevId: 70ed9117d9cfc5a0e0db4746e645f2e704599a1b
2018-09-12 23:59:10 +03:00
levlam
78bd4b0447 Fix setting online before setTdlibParameters.
GitOrigin-RevId: f8a1038415100667de798e88fb484d850aa2da32
2018-09-12 22:51:34 +03:00
levlam
f7405f8f86 Fix invalidating of chat invite links.
GitOrigin-RevId: d32dc810da18f379ad95b1d0ed07f0acdb2af700
2018-09-12 22:30:25 +03:00
levlam
9073ce4570 Do not add local photo sizes if photo could be changed.
GitOrigin-RevId: 6c19826a4c64a391a9254f261712529493fbe18c
2018-09-12 20:35:22 +03:00
levlam
f8568f0400 Fix some includes.
GitOrigin-RevId: 253f114339c6b05b08705c188df1cb4c917537d2
2018-09-12 06:26:05 +03:00
levlam
31333b5b7f Fix warnings.
GitOrigin-RevId: 1b76215c3fdfd5a05581ab0122704b4e422de410
2018-09-11 22:28:10 +03:00
levlam
fd96a6722d Add get_ipv4 test.
GitOrigin-RevId: fe8d79634d3d4e5114cc8b03b0a38d988923c2ba
2018-09-11 21:49:39 +03:00
levlam
c20e1612d8 Remove thread 4 from tg_cli.
GitOrigin-RevId: eca37443e076ab504e6be0f8852ae91049cf0bb3
2018-09-11 13:37:44 +03:00
Arseny Smirnov
25b209fec1 bugfix
GitOrigin-RevId: 85798ce644ab01e9123558d47b40eee865d5c6ca
2018-09-11 10:31:05 +03:00
levlam
9971b52b81 Make subscribe a static method of Scheduler.
GitOrigin-RevId: e80024cfa63a37fb9b64f514ac3407d4e97c7302
2018-09-11 01:20:41 +03:00
levlam
a165b42575 Minor fixes.
GitOrigin-RevId: 793bc74ee1c82b5a86e044be65e4be0e5ce00336
2018-09-10 21:45:34 +03:00
Arseny Smirnov
982369c495 BufferdStdin: support posix
GitOrigin-RevId: eac3b2429f6680fb6246fecefc8bed7b4c48bd14
2018-09-10 18:09:08 +03:00
levlam
00b4fe3bc3 Mark PollableFdInfo default members as deleted.
GitOrigin-RevId: c16b8d57ac94f67018209af78518db0b95697932
2018-09-10 15:42:46 +03:00
levlam
fc0cbae579 Fix some includes.
GitOrigin-RevId: 9b36a638202fb8b34e13494efd6b4a48ff7f4845
2018-09-10 04:08:15 +03:00
levlam
cfea83b4c5 Move set_is_blocking method to NativeFd.
GitOrigin-RevId: 09040e5993647fb6626917bd3b07421e9a717af3
2018-09-10 02:08:12 +03:00
levlam
fd90bf435e A lot of fixes.
GitOrigin-RevId: c7c16991da51e09a685537a444385852e8e93af4
2018-09-07 03:41:21 +03:00
Arseny Smirnov
5923d6d41b tg_cli works under windows
GitOrigin-RevId: 30810ab2d69390c5ec842cfffd686bfa2043ef59
2018-08-17 17:00:44 +03:00
Arseny Smirnov
bf15a5ac12 tg_cli works under posix
GitOrigin-RevId: 632e05de183a55b045f74e09ca8d41060f55ad41
2018-08-17 16:41:51 +03:00
Arseny Smirnov
8a28e4b461 Almost compiles
GitOrigin-RevId: aad536022caddba0446a761e7ab1f3b4ac64f53b
2018-08-14 10:42:40 +03:00
Arseny Smirnov
89fe455514 Support td_api::close and td_api::destroy in WaitParameters state
GitOrigin-RevId: dc2ab631b2ae4151eec285fcdc54e93d9838a7cc
2018-09-11 20:04:10 +03:00
levlam
7629802ac7 Make expect_blocking option public.
GitOrigin-RevId: 9c61c1272d8f9d2b401c838d15949001b6378626
2018-09-08 23:25:54 +03:00
levlam
0f829d6bbd Prefer non-web remote location in merge.
GitOrigin-RevId: ce678712f457a3b3ece48d26aedfe3220e54e7bf
2018-09-07 19:43:29 +03:00
levlam
a72021c170 Make function names better.
GitOrigin-RevId: 87e06fdb3faf6e964688d74648e3fd44b21e0eb3
2018-09-07 19:29:18 +03:00
levlam
2b34a6befa Ignore invalid strings in the database.
GitOrigin-RevId: 46d75ea61a1ab03d2f9540f001652ff7c08cd44c
2018-09-07 19:12:48 +03:00
levlam
cd33ec58be Try to fix last_new_message_id in on_get_history_from_database.
GitOrigin-RevId: 4c5ede1006c4d8be0694ccfb459d70ed0702dc5d
2018-09-07 18:43:25 +03:00
Arseny Smirnov
e02ff596ae beter DelayDispatcher and OrderedEventsProcessor destruction
GitOrigin-RevId: eb7ff28c66f326aa9ba2ce9313182a3800fb76e0
2018-09-07 16:17:09 +03:00
levlam
7a14de987c Remove unneeded forward declarations.
GitOrigin-RevId: e33aac4e7ac27efe2757fdd421115637359bcf5e
2018-09-05 22:31:33 +03:00
levlam
e7929ac51e Mark default switch cases as UNREACHABLE.
GitOrigin-RevId: 8d17b9d6981f23d45d140b0f5deaa12cff734abb
2018-09-05 21:07:50 +03:00
levlam
6129ebf394 Improve message.id description.
GitOrigin-RevId: 6f73288153716ad399b00c8170212ef2008dc640
2018-09-05 15:08:42 +03:00
Sasha Koss
7dad9a36df Clarify the message id description (fixes #245)
Clarify that the message id is unique to the chat it belongs to.
2018-09-05 15:04:35 +03:00
levlam
d9a18a064f Update version to 1.3.0.
GitOrigin-RevId: 769ebff9a53dcf5087ecf691eb1c52dac9a85f7a
2018-09-04 21:26:44 +03:00
levlam
3fc180e001 Make Emscripten addresses public.
GitOrigin-RevId: 3e380bb6336587b737db60a684ec64b456d813cb
2018-09-04 18:51:28 +03:00
Arseny Smirnov
84429d0617 SessionConnection: fix requesting of salt when Time::now() is close to zero
GitOrigin-RevId: cc585b4f8a5895964c24e947f855cc9248883961
2018-09-04 17:01:01 +03:00
Arseny Smirnov
cab28f2cc8 Emscripten: wss support
GitOrigin-RevId: 06ce89660769533f531726b74573a1a422be20d0
2018-09-03 19:53:52 +03:00
levlam
8e9da13546 Fix handling of updateShortSentMessage without media.
GitOrigin-RevId: 8b43a406e25de52d78e86f6dc18f8901f30a4d59
2018-09-04 17:26:13 +03:00
levlam
15856c0272 Local cache of language pack list.
GitOrigin-RevId: bb4e7cbbd82cee7367cfe60678782e0ff9563e1b
2018-09-04 15:01:08 +03:00
levlam
ad26781fbc Update language pack API.
GitOrigin-RevId: 252723bc424afb8e0eb3c1647198e302b23e10db
2018-09-04 04:29:26 +03:00
levlam
20d1e6902d Update Telegram Passport documentation.
GitOrigin-RevId: 1406f36c44b69bda5f29243bd6d874e83334d317
2018-09-04 02:44:05 +03:00
levlam
6f570624df Fix thread-safety for C++/CLI.
GitOrigin-RevId: 934f0b05cc46cc0731f5f9f24c6db019a1e6a605
2018-09-03 14:19:14 +03:00
levlam
dea5dea49a Fix C# binding thread-safety.
GitOrigin-RevId: 48b4ec74878f815d2a3d280a9f9f8a524509ab93
2018-09-03 12:47:32 +03:00
levlam
6a2cb7a466 Make td::Log thread-safe.
GitOrigin-RevId: d1942c9b5ff72ea6ae100a0b4b65f1371f8ee534
2018-09-01 22:44:20 +03:00
levlam
642f5ed81a Use Windows line feeds in generated files on Windows.
GitOrigin-RevId: 53010ee7d1a3b88bedc3c0a5fd6914d31bb33c09
2018-09-01 17:00:28 +03:00
levlam
523f4b9b26 Move logging of gaps in channels to INFO.
GitOrigin-RevId: 094a918973b02804f357e898378c55c147d02490
2018-09-01 15:55:29 +03:00
levlam
3022046858 Add td_api::editCustomLanguageInfo.
GitOrigin-RevId: df4919a0b4b781751be4f6eb60063ddd48560741
2018-08-31 20:18:12 +03:00
levlam
2b72a74ab7 Fix finishFileGeneration with error result.
GitOrigin-RevId: b4d766d6832820eb8480d09444a167bd11bc95a3
2018-08-29 13:44:21 +03:00
levlam
5379348651 Improve some logging.
GitOrigin-RevId: ec0a2f01c45b1ae7a74cd407f5c867e609e47d1f
2018-08-28 05:52:43 +03:00
levlam
45d42b6417 Better logging.
GitOrigin-RevId: ba955bd72a80b58f451e97705d45ba06daffd420
2018-08-28 04:04:39 +03:00
levlam
f9cbe247cd Add Wdeprecated flag.
GitOrigin-RevId: 8aa900d7103efd0207f7f0fcb09e3bd2b7387564
2018-08-28 01:08:51 +03:00
levlam
d8f66f8a8e Minor fixes.
GitOrigin-RevId: 01b7c4015a8a4ee30c06b977363889d38a65bfd4
2018-08-26 11:08:45 +03:00
levlam
e09cab4009 Mark as read all messages in chat with self.
GitOrigin-RevId: b6185d3a885530852b6f2708b923601a983aca32
2018-08-25 16:07:54 +03:00
levlam
5923239296 Fix wrong is_outgoing flag.
GitOrigin-RevId: 09c3817822b6bf8a961cbeaa33eb6a7ecd15d7ad
2018-08-25 16:01:23 +03:00
levlam
f13452f756 Add new_verbosity_level check.
GitOrigin-RevId: 1f02035863f382120a5881e2bb750c3d79ec6f98
2018-08-25 03:08:10 +03:00
levlam
d76734ea73 Fix warnings.
GitOrigin-RevId: 0ba63a483c0c765e5d4889275d0ac4598be12fd1
2018-08-24 16:16:13 +03:00
levlam
3c34179234 Add various sanity checks to language packs manager.
GitOrigin-RevId: c7fa6f88415bdefe4da589a33d28429f824d551c
2018-08-24 05:26:19 +03:00
levlam
a1436a11f2 Preload lanfuage pack after it was chosen, even it is empty.
GitOrigin-RevId: 57f32bbf230e7dae2d33c2a587ecceb4d0d8282e
2018-08-24 04:57:52 +03:00
levlam
bcadd6a459 Unite requests for getting full language pack.
GitOrigin-RevId: 401ccd4168f56c555af1a7827384395dcf906fc0
2018-08-24 04:53:14 +03:00
levlam
4238f28a19 Add td_api::getPreferredCountryLanguage.
GitOrigin-RevId: a7abb6ac1b702292216fdf046b07af92fce99d65
2018-08-24 01:02:59 +03:00
levlam
06d04c8652 Fix languagePackStringValueDeleted.
GitOrigin-RevId: 58e01c920bb8e6716974c8d5cd68e27c82ab0d03
2018-08-23 16:13:15 +03:00
levlam
e9db5b90b2 Renew language strings just after it is set.
GitOrigin-RevId: d1f65f9128a6fce8fe46f92f26eb403351f22bf3
2018-08-23 03:53:59 +03:00
levlam
3ac0116988 Calculate key count for each language.
GitOrigin-RevId: aad64d5cecb70f10e3a1cd013b58c7183ad67d31
2018-08-23 03:45:04 +03:00
levlam
0300c3387e Better td_api::languagePackString.
GitOrigin-RevId: 1d65914ecd09584ae58b3a57a9f59c5ecb34dea5
2018-08-23 00:29:26 +03:00
levlam
7e45ca25f7 Add td_api::setCustomLanguageString.
GitOrigin-RevId: 0f4b7a531bacd9ab8eae0b8da631fe53dbaf1c7c
2018-08-22 23:11:54 +03:00
levlam
c12ed8d9cc Improve logging.
GitOrigin-RevId: b361ebec579228514f4531465144d49aeb2cd7b5
2018-08-22 04:04:09 +03:00
levlam
88295c5071 Update getMapThumbnailFile documentation.
GitOrigin-RevId: 1cbd5ab983cfabdb0b1032ab4a66e2a671af3b8e
2018-08-20 01:26:14 +03:00
levlam
74189f89a6 Fix saving custom languages to database.
GitOrigin-RevId: 45aed87e231b6646e72bfe03a53cfe81dc211510
2018-08-20 01:03:03 +03:00
levlam
208633bbce Update layer 85.
GitOrigin-RevId: 6a3346c14e35faa39bcbe9a47d1edd92f7ac1a34
2018-08-20 00:28:43 +03:00
levlam
d464ba71b8 Rename payload to nonce.
GitOrigin-RevId: ac49a3c22307cf904c440b9b6ddb34feee38da1a
2018-08-17 22:16:55 +03:00
levlam
ac1472c938 Fix verbosity level.
GitOrigin-RevId: 855ca89e37e48193d9b899ab309c0c12f8321d1b
2018-08-17 19:12:09 +03:00
levlam
c19ab1adbc Minor HTTP-proxy fixes.
GitOrigin-RevId: 03d1ca116707c358cd1a414046222236ee2d09b4
2018-08-17 19:03:07 +03:00
levlam
25826e253d Move VERBOSITY_NAME(connections) out of utils/logging.h.
GitOrigin-RevId: ec768560b9c87ff64d3d8b9a0c821f75abf3321a
2018-08-17 17:02:28 +03:00
levlam
811cc8f393 Better error messages.
GitOrigin-RevId: 9d77793cb6bcc8d3f9c64c01324ca55bd61a08c4
2018-08-16 20:31:42 +03:00
levlam
16b33f67c7 Add shorthand requests getContacts, joinChat and leaveChat.
GitOrigin-RevId: 95ce6e52aaefafd8bb1c7a70fd096b2156d1a164
2018-08-16 20:09:23 +03:00
levlam
23c03a97f4 Various style fixes.
GitOrigin-RevId: 056c091cfd71322a0cc8db0e3bafec7d272da7ad
2018-08-16 01:06:53 +03:00
Arseny Smirnov
ab2b189722 Ssl refactoring
GitOrigin-RevId: f5916787608227b6914c10520dfe7a7039522ef9
2018-08-15 15:41:42 +03:00
levlam
7fc96ddff5 Add missing override specifier.
GitOrigin-RevId: ea9c63f9a1c192285bd88600c2db38307f3ad7f6
2018-08-14 17:27:41 +03:00
levlam
85bb2d8e19 Fix g++4.9 CE.
GitOrigin-RevId: dbe44c308021c68f7c750618947dd5643f0789ea
2018-08-14 16:44:31 +03:00
levlam
f411737f1c Fix documentation.
GitOrigin-RevId: 8ece75f9aaad19ecfcdb2cc677a7dfa80326b054
2018-08-14 16:25:43 +03:00
levlam
712d6bea89 Support translation for Telegram Passport personal documents.
GitOrigin-RevId: b54a7193e584b631ca6d9aeb132be72e02e5f87f
2018-08-14 16:17:47 +03:00
levlam
55417e88fd Remove unused function parameter.
GitOrigin-RevId: 88f3fee550593cbdc7a7392293cb22f484e9f986
2018-08-14 02:49:32 +03:00
levlam
8d5c17036a Use Location access hashes.
GitOrigin-RevId: 1f018d5e42e1c657492f2e1da74700632825c8f9
2018-08-14 02:11:49 +03:00
levlam
c6bc8f7c3f Add td_api::getMapThumbnailFile.
GitOrigin-RevId: f02f154cc8a3ce62f888bdaf9c159cebcb4a350a
2018-08-13 23:18:27 +03:00
levlam
e27e4f405e Move saving bytes to file to FileLoaderUtils.
GitOrigin-RevId: 18734bb0d5172832119da4e658363f6eddaad986
2018-08-13 19:30:52 +03:00
levlam
da438591f7 Fix warning.
GitOrigin-RevId: 6eff463a63bb377cdb583c819b33b0fe1f906fca
2018-08-13 13:00:44 +03:00
levlam
bd09e39788 Fix logging in after entering a wrong password.
GitOrigin-RevId: 3f0284a015fb9b59257befc5d988833ecdaa1f64
2018-08-13 12:24:37 +03:00
levlam
8283d04942 Auto log in if password was removed just after code checking.
GitOrigin-RevId: f01d53b5d93ec20690a4099d8be1d60d6b9ca3c1
2018-08-13 01:44:53 +03:00
levlam
4404267ec4 Remove redundant call to account.getPasswordSettings.
GitOrigin-RevId: 8b4ee1f2ef3206cbae4d8231c723d57b286a80c0
2018-08-12 22:25:04 +03:00
levlam
6a94c83f66 Fix changing password.
GitOrigin-RevId: 1cbaa3df8e34030803e5553cc45481b9a466d0b3
2018-08-12 21:54:52 +03:00
levlam
94a4bbcac4 Fix authorization form required types.
GitOrigin-RevId: fea3a2679d00ba57981762285703c6fdc7f72473
2018-08-12 20:30:51 +03:00
levlam
dcaf773152 Native names support in Passport.
GitOrigin-RevId: 3f38ec52d8c645eb6ab529bc4968ad400949482f
2018-08-12 19:12:25 +03:00
levlam
b4be4da02b Better check for empty message text.
GitOrigin-RevId: cfc3081dd0d8f5bd250b3d043b77fe1c3449cfd3
2018-08-12 18:02:11 +03:00
levlam
9d895eadbe Again send credentials only for requested elements.
GitOrigin-RevId: afa4ed9c7a9e72f0afbe208088bcf71417a64d4d
2018-08-12 17:45:30 +03:00
levlam
062c016b2c Always use cached secure values for sendPassportAuthorizationForm.
GitOrigin-RevId: f1827b89c0ef6870813784e48762cd96325d4b89
2018-08-12 16:46:05 +03:00
levlam
b07fc66b69 Add cache of secure values.
GitOrigin-RevId: 54fcf89a89f28086705e12869e9dc777c2a86233
2018-08-12 15:44:24 +03:00
levlam
4f8d855527 Support new Passport authorization form.
GitOrigin-RevId: 5830754700dcd19f4e0bcb08ccb5d72c22db76f0
2018-08-12 12:51:24 +03:00
levlam
af4c366fdd Remove legacy DH functions.
GitOrigin-RevId: 13efa3ef84b99095170df7f5c994482eb9606fe2
2018-08-11 13:29:06 +03:00
levlam
0c7e2ce37b Create settings dialod in send_update_new_message to get only notification settings from the server instead of the whole dialog.
GitOrigin-RevId: ebe1e1194b0063787e0591ac94aba3866a4e07e0
2018-08-11 12:54:07 +03:00
levlam
22d8d1e469 Disallow forwarding of empty messages.
GitOrigin-RevId: 06c09cde285f440a86a420d2790da7c3751384c1
2018-08-11 12:03:32 +03:00
levlam
4052bffcd5 Update layer 85.
GitOrigin-RevId: 5902d95080c65b2aed40d199f14634dadb30926a
2018-08-11 00:08:13 +03:00
levlam
c1c1308ba8 Update layer 85.
GitOrigin-RevId: 65fb62fea07f05637b2b652f09a4a6be2de3346b
2018-08-10 22:21:03 +03:00
levlam
d3bce1b23d Fix some includes.
GitOrigin-RevId: a3fecf68a676120e1bbd5936d98dee6cf05e8294
2018-08-10 21:54:17 +03:00
levlam
07bfd77908 Fix warnings.
GitOrigin-RevId: 1333339879d7990836bb6c14cc9dce4a3e9ad085
2018-08-10 19:48:51 +03:00
levlam
3d05d44be8 Update layer to 85.
GitOrigin-RevId: 0a32bd0287e3d09dd484c8dbe230f29b92d19771
2018-08-10 19:39:48 +03:00
levlam
00fabb8f97 Update layer to 84.
GitOrigin-RevId: a2057596f00201ee967e7d038e048b618f6e629d
2018-08-10 16:22:48 +03:00
levlam
73aa76dc5f Pre-check DH parameters.
GitOrigin-RevId: 98a488559b95651eab0c43b747a1f1fae2b716a5
2018-08-09 23:41:01 +03:00
levlam
466ebd2908 Add DhHandshake::check_config method.
GitOrigin-RevId: 1f9bbd0539454c2e6acbfe3be514614985a2d713
2018-08-09 22:56:24 +03:00
levlam
c44361fb60 Add functions for getting BigNum parameters of DhHandshake.
GitOrigin-RevId: 7ad8d822f5d4c696769b5585b6fc6533ba56d0e0
2018-08-08 22:57:37 +03:00
levlam
cdecbe9b3e Add TODO.
GitOrigin-RevId: f195a07fe83d66e6b348291c7c497ce94425d748
2018-08-08 22:55:54 +03:00
levlam
b2ff3570c1 Use server specified random data,
GitOrigin-RevId: 7bb82f481b9095b3644b0d768e602976ed62d524
2018-08-07 22:43:29 +03:00
levlam
caa48e00ab Fix CE.
GitOrigin-RevId: 665876ce71338e0a0f31a4a846a9501cba613847
2018-08-06 20:29:40 +03:00
levlam
ee8d7a94ec Return custom language packs in getLanguagePackInfo.
GitOrigin-RevId: 77ef71acb97f85b4bf71c8966d8c0200e4b122d3
2018-08-06 20:18:28 +03:00
levlam
f1295eba9b Add more debug logging.
GitOrigin-RevId: 047dbe63624ba0e810b245689c305e600e0a87f2
2018-08-06 19:04:21 +03:00
levlam
ff593d2ce8 Properly fix resolving proxy IP.
GitOrigin-RevId: cb385b8d0753da6f76dcdb237b2001143a23c94f
2018-08-06 18:28:56 +03:00
levlam
7c145a412b Custom language packs support.
GitOrigin-RevId: e7f76319dae5be3e20f81b41a0226e5f96f91ba1
2018-08-06 17:22:22 +03:00
levlam
3616f205bb Add crash in get_saved_animations_hash debug.
GitOrigin-RevId: a4e2f469c4ddcb91101d93490bb1c6fade3837f7
2018-08-05 17:03:08 +03:00
levlam
f15105bd9a ADd more parse_sticker debug.
GitOrigin-RevId: bcec43b2720f9ea9c6c9d1bc8ab090186a7fd794
2018-08-05 16:20:35 +03:00