Commit Graph

929 Commits

Author SHA1 Message Date
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
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
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
6a2cb7a466 Make td::Log thread-safe.
GitOrigin-RevId: d1942c9b5ff72ea6ae100a0b4b65f1371f8ee534
2018-09-01 22:44:20 +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
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
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
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
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
levlam
710c548015 Add more debug to get_message_id_by_random_id.
GitOrigin-RevId: 3a2d2acfceb1f6b5f78cc46a04fd3ffb2772d6a5
2018-08-05 01:29:53 +03:00
levlam
a82fbad806 Fix misprint.
GitOrigin-RevId: fbfa91572c5f42248ed3b12bf8ebb9979477c6c4
2018-08-05 00:52:52 +03:00
levlam
debb0cf186 Use online status in ConfigRecoverer.
GitOrigin-RevId: ffc119b35bd2a42a236de90e3393c325d36478a9
2018-08-05 00:35:50 +03:00
levlam
72d2235f6e Improve get_next_message_id.
GitOrigin-RevId: af978d83a85415439a6168964e7f05335c16b76d
2018-08-05 00:05:29 +03:00
levlam
b97570b817 Fix handling of some message contents in on_message_ttl_expired_impl.
GitOrigin-RevId: 1ad333a8f050f1d86bf769158a55f6cf113b66f3
2018-08-04 23:46:43 +03:00
levlam
2465356c2e Add some debug.
GitOrigin-RevId: 5d2387379188dce1fd52cc9561a349f87e4fc240
2018-08-04 23:08:36 +03:00
levlam
c9c2760173 Update layer to 83.
GitOrigin-RevId: 2220a0399ed081441fefc06069b06efa11b8447b
2018-08-04 09:55:49 +03:00
levlam
f162aa55ad Set error on invalid Dialog logevent.
GitOrigin-RevId: a1b91622061a1117b15d7e668c109f6bbe0a2469
2018-08-02 15:45:58 +03:00
levlam
b00a0b4ebb Add required actor name to MultiTimeout.
GitOrigin-RevId: 918ad6358dd5c0056452df5da694e8b94c63a47a
2018-08-01 20:31:20 +03:00
levlam
c01dcf9a99 Add temporary ignoring of duplicate user/channel log events.
GitOrigin-RevId: ecd17421d9f2c3591ce4a4d84970949954f8496e
2018-08-01 17:10:07 +03:00
levlam
986652a1ae Change Telegram Passport API object and function names.
GitOrigin-RevId: 8e7d3602146dab76f62aa86f7539187559d2ca92
2018-08-01 16:52:07 +03:00
levlam
e691803f21 More robust check_language_code_name.
GitOrigin-RevId: 43576730594d92b63eddc6c5408126a8bdf0c1f1
2018-08-01 02:34:59 +03:00
levlam
6dd751ab10 Fix duplicated stickers.
GitOrigin-RevId: 138fddeb69af48ce77a6e3005e7d356165b897f9
2018-07-31 23:48:54 +03:00
levlam
7626c1a6dc Add more get_stickers debug.
GitOrigin-RevId: dd0cef99c5866ed59f7f6db1a7e365b57b4e8d1e
2018-07-31 20:48:38 +03:00
levlam
d67645a2cb Add get_stickers debug.
GitOrigin-RevId: c82190d2e03712a2a716608fd5ab40b1908e023a
2018-07-31 20:17:46 +03:00
levlam
7706e8614b Fix get_dialog_mute_until.
GitOrigin-RevId: eb198090119d8d8be3716ac6765eed6f5e75cf16
2018-07-30 23:24:50 +03:00
levlam
b339257c89 Add add_local_message debug.
GitOrigin-RevId: 893cddc5a8388bf47eaaf62e1f9ec9dc1fe6bb45
2018-07-28 10:08:00 +03:00
levlam
10b7862dfd Add even more denug.
GitOrigin-RevId: 6b30a16e43b4278abe04ac8030d0b05aa23067b6
2018-07-27 18:47:51 +03:00
levlam
1ab13463bf Add td_api::editProxy.
GitOrigin-RevId: aae0664d65ce0731b1a9ede9615453cfe0822619
2018-07-27 18:10:45 +03:00
levlam
f0070c093a Fix some includes.
GitOrigin-RevId: abe527ca92b2136ee6a95b046ef53bdde32be6d5
2018-07-27 16:19:46 +03:00
levlam
8de0bcd0a6 Add support for HTTP-only HTTP proxies.
GitOrigin-RevId: 7b8e3e7afb0f26c8e8fa97b0ffff5d1ad0267b5c
2018-07-27 03:54:25 +03:00
levlam
a547f42886 Add support for transparent HTTP proxies.
GitOrigin-RevId: 5ae836625a60d1f84b0ca8df2c41bf07e8ba59fd
2018-07-26 16:49:18 +03:00
levlam
2ca3c7eeed Add TransparentProxy abstract class.
GitOrigin-RevId: 77ced69b5d87c17a1bbc6d654bb0206a4e32e69d
2018-07-26 03:28:02 +03:00
levlam
c63aaf7cde Add source to ttl_unregister_message.
GitOrigin-RevId: d25685de6cbb92569f29f22e111b612d76e4fcb9
2018-07-25 16:49:44 +03:00
levlam
cf1ece71a0 Do not return error for delete messages and close in closed secret chats.
GitOrigin-RevId: c63a155a6fe056dfcbe6204b5ca25de95eb1f23f
2018-07-25 16:21:53 +03:00
levlam
86c9234388 Fix can_delete_for_everyone flag in closed secret chats.
GitOrigin-RevId: 4db2dd4ac884d65c9f7f93a9dff19ee4f207766d
2018-07-25 02:59:05 +03:00
levlam
302d2aa671 Allow to delete messages without error in closed secret chats.
GitOrigin-RevId: 37304c857e2c634ce9f794be3ad7c8a1414c041e
2018-07-25 02:52:31 +03:00
levlam
ec1ae551d8 Better support for secret_api::decryptedMessageService8.
GitOrigin-RevId: f3d46446f2dd0ecd0c9b3630ffca6a5cacf6b075
2018-07-24 20:14:04 +03:00
levlam
09ad42fa82 Fix left chats in searchChatsOnServer.
GitOrigin-RevId: 304be4cf1be8e229532a4faa2115030b2d7250bd
2018-07-24 19:02:12 +03:00
levlam
88dae19d7e Remove unaccessible for reading chats from recent list.
GitOrigin-RevId: ac80c4d127f28fb72ef3cb44f15464ce72dd241f
2018-07-24 18:30:04 +03:00
levlam
3717a2b132 Do not use ScopeGuard to not unblock Client::receive by exception.
GitOrigin-RevId: e5ae94129923da1ea17688860c9d2295d7775b90
2018-07-24 18:20:59 +03:00
levlam
e171c6490f Fix updating ScopeNotificationSettings on server.
GitOrigin-RevId: 017ca08db0c37d951887e77a25484b71f838c5cd
2018-07-24 18:17:28 +03:00
levlam
2ffabd63ba Add some logging.
GitOrigin-RevId: f0529ad4470507d96a22d820b14e2f0358bbd81b
2018-07-24 18:03:04 +03:00
Arseny Smirnov
45754209d8 SecretChats: better closing
GitOrigin-RevId: b7112abe401a3375c9bbfc50969b606a4a65cec4
2018-07-24 12:43:37 +03:00
levlam
bd726dd4a2 Fix warning.
GitOrigin-RevId: 37d3ab8ee20d5fd4dc1e0b832847bd7effb19ff3
2018-07-24 03:13:24 +03:00
levlam
05810a11d4 Improve logging in replay secret chat events.
GitOrigin-RevId: 02e498c5a864d2acb5825dbe46f1f061306744e0
2018-07-24 02:23:59 +03:00
levlam
7fd2a81a38 Fix some secret chat actions on closing.
GitOrigin-RevId: 055965d9dd24f42c16826d18c88ef1205d9b808e
2018-07-24 01:45:44 +03:00
levlam
9882a8a619 Support decryptedMessageService8. Don't fail secret chat on closing.
GitOrigin-RevId: 627ea95e7994513d10aa19d026fc87170362e711
2018-07-24 00:12:53 +03:00
levlam
4717e5529a Add td_api::getLanguagePackString.
GitOrigin-RevId: 37ee2203264bb78ed3de88c21350a99212d89c3e
2018-07-23 20:29:14 +03:00
levlam
5e12e43b06 Load language pack strings from database.
GitOrigin-RevId: 47048d4712b6259d17a1dbadeb7b722d5dbbe809
2018-07-23 14:45:31 +03:00
levlam
a5cb3bfade Fix include.
GitOrigin-RevId: f8824dc7bbf597cc2535becf67ee2b8ba26cdf2b
2018-07-23 00:27:00 +03:00
levlam
7c183449a8 Save language packs to database.
GitOrigin-RevId: 2c40013068881e3170821585c25d29edcc78528c
2018-07-22 20:22:19 +03:00
Arseny Smirnov
a7c2a401b8 fix
GitOrigin-RevId: 20f47274a3545fe85c26067a650232fa6f87cdc4
2018-07-23 00:24:42 +03:00
Arseny Smirnov
8bd8f4a136 Client: check if Client::receive is called in a thread safe manner
GitOrigin-RevId: 6f2af0811b43d3e2d14177963e48dfd99853c6d2
2018-07-22 23:59:18 +03:00
levlam
9b6382d5d0 Check language_pack and language_code for validness.
GitOrigin-RevId: bc4907a06f74af8bdda9e8bdec82e7a3ce788580
2018-07-22 03:29:48 +03:00
levlam
77f3b9d400 Save only SqliteDb in LanguageDatabase.
GitOrigin-RevId: 7bac17996ad17d9e895a4fb21ed41d53f77a8539
2018-07-22 01:59:13 +03:00
levlam
e8f4c31586 Open language database.
GitOrigin-RevId: 9765471da4bae835d7159ca90aa99106a251b654
2018-07-20 20:50:38 +03:00
levlam
92c04286e3 Add language_pack_database option.
GitOrigin-RevId: 99f4b3f75f396d5b25287f4a98bae2dfdda9df00
2018-07-20 16:15:19 +03:00
levlam
15828a2329 Add members filter to searchChatMembers.
GitOrigin-RevId: 8d553d6c73e32446eaa7e6ebb5bdf562458d258d
2018-07-20 03:00:17 +03:00
levlam
28672b750c Fix CE.
GitOrigin-RevId: 4b8004a7f4b920deac9f069bac03ef7784fc5670
2018-07-19 17:45:30 +03:00
levlam
fc966adca9 Add exclude_secret_chats parameter to clearAllDraftMessages.
GitOrigin-RevId: 7b08fe3e954d9e361d7e20c4341575e2101e6dbc
2018-07-19 17:23:18 +03:00
levlam
460675316c Add td_api::getChatMessageCount method.
GitOrigin-RevId: f2257074e276e12084b43a63db17f852fb5f500e
2018-07-19 16:58:09 +03:00
levlam
7b656da0c8 Get dialog unread marks only after getDifference.
GitOrigin-RevId: a0c12f5d4ed032c4e221945130f3c487bae101c0
2018-07-19 01:33:04 +03:00
levlam
6ca79487e2 Clear language pack info when all language pack managers are closed.
GitOrigin-RevId: 2c08722e00ae6209fb90f912b9265ce30bc3aad6
2018-07-19 01:14:20 +03:00
levlam
f25bcd8d70 Remove unnecessary semicolons after namespace end.
GitOrigin-RevId: bf290001b072fd390fe2cada06722a3b90309cca
2018-07-18 04:30:29 +03:00
levlam
46ebd1b240 Include SqliteKeyValue only in cpp.
GitOrigin-RevId: b89c988f6da1d480f68ecb71ef5390e9376faac1
2018-07-18 04:11:48 +03:00
levlam
b0dfc088ae Fix CE.
GitOrigin-RevId: 6117160e2ee0045bb0c7dc8e3e048a5aae2626f1
2018-07-17 16:49:57 +03:00
levlam
1aa94575e8 Minor fixes.
GitOrigin-RevId: 33b0f159e7003d7b9dce28033a7e90169a9421bc
2018-07-17 14:27:24 +03:00
levlam
4594885e61 Update layer 82: chatReportReasonCopyright, clearAllDraftMessages.
GitOrigin-RevId: 79d9adf61a17b11996eeecfa94c205d1cdc34a51
2018-07-17 06:46:27 +03:00
levlam
e819a0ed56 Support for language pack updatimg. td_api::updateLanguagePack.
GitOrigin-RevId: edc3bf65914b73d168d33eea38ff05cc2efd80ec
2018-07-17 05:58:34 +03:00
levlam
ec2f70cb19 Return debug in on_message_ttl_expired_impl.
GitOrigin-RevId: b82816793bf1a142757b65b54396796cad5efe63
2018-07-16 06:08:57 +03:00
levlam
bdbe8f990c Add more debug.
GitOrigin-RevId: cfc7b2526233caa5beb2a1ed3d145224354ba3ae
2018-07-15 12:29:28 +03:00
levlam
8e1667281e Add get_message_by_random_id debug.
GitOrigin-RevId: 77fe532243e1a6bb065ca25e65900852e66100a0
2018-07-15 11:47:57 +03:00
levlam
c6665dc30e Add timeout on call key exchange.
GitOrigin-RevId: 3fc6d5e90493188ff3ae18b19e60d36bcdad9746
2018-07-13 05:06:04 +03:00
levlam
bae9ccf76b Abort requestCall when receive error/discard call.
GitOrigin-RevId: 7a3a5b52c66e206739a5f4442bbe6cdbb82d32f3
2018-07-13 02:43:57 +03:00
levlam
e9066f09ce Fix misprint.
GitOrigin-RevId: 9cea95112e12fd73faa10da098351fe2d0fe6ca8
2018-07-12 17:44:22 +03:00
levlam
1a82e6d3f1 Add default values for message_text_length_max and message_caption_length_max options.
GitOrigin-RevId: 4f2d3d087d17ec5e7aeb62933c5525a7e12d6ca7
2018-07-12 03:50:58 +03:00
levlam
e72368d208 Add more debug logging to calls handling.
GitOrigin-RevId: 38a4864b7018a67194f517dfbfc806c90ca79a0f
2018-07-11 23:37:40 +03:00
levlam
15ac0f9c47 Return some debug.
GitOrigin-RevId: 14ee37ad972013a1b9da22d07f83c372874ba585
2018-07-10 21:02:44 +03:00
levlam
3f63b15a9b Add more debug.
GitOrigin-RevId: 2c90e851b9ac93ef7398c030f58e192854247058
2018-07-10 20:49:59 +03:00
levlam
8501dbedf8 Fix check_dialog_username.
GitOrigin-RevId: 47dd0a62c10f0bc8e91748f8197676f7b72aab2e
2018-07-10 16:56:37 +03:00
levlam
1a65b79a69 Remove unused Client::on_notify.
GitOrigin-RevId: 908dec690d3745fa9d0a75b81b6f1f5a6d7b19ab
2018-07-09 22:12:45 +03:00
levlam
de557cbc3d Fix Message.can_be_edited flag.
GitOrigin-RevId: c17a38381a629c8ede1729241fea88bb12e67a8b
2018-07-09 16:14:21 +03:00
levlam
71069a4667 Delete unused default members from Client::Impl.
GitOrigin-RevId: 5d5afa0b5df874d0ab2c8b156723955568fcf24f
2018-07-09 02:36:44 +03:00
levlam
e0c7e0b930 Add TextUrl messages to Shared Links.
GitOrigin-RevId: bc2d5f952a792cb3c863b9e4093bce335a143cc9
2018-07-08 18:20:13 +03:00
levlam
ecc774367b Add add_channel source debug.
GitOrigin-RevId: 9785f3f33bf7cd55650b9874e6167620e2a6ce85
2018-07-08 16:32:05 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
1ab40c7278 Better get_first_url.
GitOrigin-RevId: d153fcd3291758f29a99421f42c1193a51cc248b
2018-07-07 18:01:20 +03:00
levlam
05aab44742 Fix CHECK.
GitOrigin-RevId: 08037c7315fc89e8504dc935848f78e4b1afbe3d
2018-07-07 17:07:16 +03:00
levlam
145c55ad12 Force get channel difference if receive new message id evidence.
GitOrigin-RevId: 4c2f7cf65687e99d7fbf10a7ebf514fead9485bd
2018-07-07 05:18:50 +03:00
levlam
8e75107bf5 Allow ordinary users to edit messages with reply markup.
GitOrigin-RevId: 1c526e779dfada1266f737277aceda5347dc6355
2018-07-07 03:03:01 +03:00
levlam
099f66bbed Fix CE.
GitOrigin-RevId: d57e0ccbe66e9a1c13f9d43bbaef3b94c7da1b45
2018-07-06 23:44:42 +03:00
levlam
90f0f006b4 Check that storer unsafe doesn't overflows.
GitOrigin-RevId: ffbdcbbba7d26688b59cda00318d02fc06e402dc
2018-07-06 23:33:11 +03:00
levlam
4c404f3a68 Drop dialog unread counter when viewMessages is called.
GitOrigin-RevId: 0f6f4cfaaf6575383d0d0dcb4c5d3f71ca5c44bb
2018-07-06 03:10:50 +03:00
levlam
3a2ef50f91 Save only one copy of a key in a language pack.
GitOrigin-RevId: dc6446d597b90be974d7b18cadd2a79a0f0bd4ae
2018-07-06 02:42:25 +03:00
levlam
08db51cdce In-memory thread-safe cache for language pack strings.
GitOrigin-RevId: 71dc10a925f1000590501c4ddfc307806e242e51
2018-07-05 21:28:11 +03:00
levlam
f3aaff1e1a Pass language_pack, language_code and language_pack_version to LanguagePackManager.
GitOrigin-RevId: ba4be396d4da14a3169544d25ccb9850dbb9077a
2018-07-05 03:52:58 +03:00
levlam
f3f26b0783 Ignore message views when forward header isn't added.
GitOrigin-RevId: 41d611e4b2103a72802786c49e370624d9c30bee
2018-07-04 22:00:13 +03:00
levlam
321df81ebb Trying to repair broken Dialog, received from database.
GitOrigin-RevId: 39a0bc85a5edb557b598ac0486d287f0eb332aed
2018-07-04 19:55:54 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
levlam
b28ec40407 LanguagePackManager draft. getLanguagePack, getLanguagePackStrings methods.
GitOrigin-RevId: 959e1fd4a76eb5005d8a53c3e88abb3054fb9a5e
2018-07-03 20:28:00 +03:00
levlam
60c5b21ccb Add slightly more debug.
GitOrigin-RevId: 9f9bdbd8274b8c69134c1e85aef76f58501e9339
2018-07-03 02:49:43 +03:00
levlam
007c4cbc57 Move logging to INFO.
GitOrigin-RevId: 7369b95bcd6480731443925490459ab828a5b056
2018-07-03 02:34:47 +03:00
levlam
de7160f890 Make some arrays const.
GitOrigin-RevId: 6c7f0cf45fdc6736defb1559674242e1f1f29c91
2018-07-03 02:28:28 +03:00
levlam
4ebc21fe3d Get stickers_limit on construction.
GitOrigin-RevId: cb44a40f6dd47238bfeccc20d03171126fa87bd4
2018-07-03 02:10:57 +03:00
levlam
b4f72859d7 Better is_internal_config_option.
GitOrigin-RevId: 656dc4f1cd41f1a25da5fae8d13da9ac24d26c0d
2018-07-03 01:59:25 +03:00
levlam
296950f1cf Add suggested_language_code option.
GitOrigin-RevId: 67472e28774cb506f11687d0ac86b24cb707dfc9
2018-07-03 01:52:43 +03:00
levlam
9575ed5fbd Support language_pack in MTProto header.
GitOrigin-RevId: 75238791e517694bb3f430973e0d2556127f6bdd
2018-07-02 23:44:23 +03:00
levlam
9c8a6f9c65 Better MTProto header updates.
GitOrigin-RevId: f7df4c8259c286b699e27a7e33f2477515c6e798
2018-07-02 23:36:45 +03:00
levlam
dcdbf6854b Add is_dialog_muted function.
GitOrigin-RevId: caf78597b4711273e26f21b4276a3a604395b387
2018-07-02 04:21:18 +03:00
levlam
1e62b66677 Fix get_simple_config.
GitOrigin-RevId: f913ca35a86e2b45d4de510772a487e5689b5a59
2018-07-02 04:21:05 +03:00
levlam
db48e0abac Add updateUnreadChatCount.
GitOrigin-RevId: 151d11964c23443da8a975d32e343226e650bb9d
2018-07-02 04:02:30 +03:00
levlam
ac1d7a9657 Add prefer_ipv6 option.
GitOrigin-RevId: b20e8c699e20c4fb6ec76cd53aeaeee509cd2115
2018-07-01 17:19:59 +03:00
levlam
5a11dd6c58 Support prefer_ipv6 in Wget.
GitOrigin-RevId: 80740a20f38174235160e05b1854e7023ebe3677
2018-07-01 04:45:25 +03:00
levlam
9b0a138dd1 Add prefer_ipv6 parameter tp GetHostByNameActor.
GitOrigin-RevId: 727fc30d94657399f1e49efc208b6951a7677d2f
2018-07-01 04:12:20 +03:00
levlam
06481d89dd Fix G()-shared_config() usage.
GitOrigin-RevId: f372b36b83238ab2415c16e3fbd7bd5597b876b4
2018-06-30 16:35:37 +03:00
levlam
4fb3506792 Safe conversion to user_id in get_link_user_id.
GitOrigin-RevId: 3f0f81deef264b4b0a193cc18ef5bb344490751d
2018-06-30 02:51:13 +03:00
levlam
cfd1761a00 Use static IPs only for IPv4 Socks5 proxies.
GitOrigin-RevId: 797d7acdd16323bb61e15b67c13ada216abe31f1
2018-06-29 20:36:27 +03:00
levlam
139a858d80 Use CREATE_OK_REQUEST_PROMISE instead of simple RequestOnceActor.
GitOrigin-RevId: 7ba8db1c05ed06b9824e482ba6c12024c5a0106d
2018-06-29 00:06:17 +03:00
levlam
2f60d194cb Fix formatting.
GitOrigin-RevId: d9c6ce7fd301a1871fea0f1b19ffdeae8328edfb
2018-06-28 22:20:48 +03:00