Commit Graph

125 Commits

Author SHA1 Message Date
John Preston 0152d2c48e Fix possible temp auth key bind freeze. 2024-04-08 21:56:56 +04:00
John Preston 0dd1a4973a Handle the new FLOOD_PREMIUM_WAIT errors. 2024-04-01 22:44:21 +04:00
Ilya Fedin e6b9a07163 Instantiate QRegularExpression instances statically 2023-12-31 22:03:57 +00:00
John Preston f442d69cb6 Fix possible crash on MTProto instance shutdown. 2023-11-28 21:23:27 +04:00
John Preston 1176421bf2 Limit special config request types. 2023-01-10 15:09:49 +04:00
John Preston cad6faa790 Fix connection re-init in case of CONNECTION_NOT_INITED. 2022-12-29 12:16:49 +04:00
23rd 4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
23rd 2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
John Preston 49544111ab Allow setting custom device name. 2021-11-26 18:00:19 +04:00
John Preston b106438de8 Fix crash in stale authorization keys destruction. 2021-08-31 14:06:12 +03:00
John Preston 2d0bcf7dca Resend non-authorization requests on main DC change. 2021-08-30 20:32:58 +03:00
Ilya Fedin c5867e2293 Fix build with clang 2021-07-20 10:34:03 +03:00
John Preston a0540e0486 Send dependent requests in bunches. 2021-07-13 22:08:09 +03:00
John Preston e28fb1211e Handle MSG_WAIT_FAILED / MSG_WAIT_TIMEOUT. 2021-07-13 22:08:09 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
23rd 6d08542afa Moved proxy global variables from facades to core settings. 2021-06-16 09:31:32 +03:00
John Preston 0cb32181c5 Handle small SLOWMODE_WAIT as FLOOD_WAIT. 2021-05-10 16:44:28 +04:00
Ilya Fedin 3343880ed0 Watch for network availability changes 2021-04-06 16:40:29 +03:00
Ilya Fedin c4dcf064d5 Avoid multiple .arg usage as suggested by clazy 2021-03-13 19:08:33 +03:00
Ilya Fedin f25b2a2094 Apply autofixes from clazy 2021-03-13 15:25:47 +03:00
John Preston 68b0a85369 Rename RPCError to MTP::Error. 2021-03-12 16:58:26 +04:00
John Preston 267e5fd9e0 Allow getting outer_msg_id in MTProto handlers. 2021-03-12 16:58:26 +04:00
Ilya Fedin 23272430b4 Build with QT_NO_KEYWORDS 2021-03-04 12:07:54 +04:00
John Preston 8634c1f7f3 Move lang keys to td_lang library. 2020-09-30 12:18:52 +03:00
John Preston 6960e4808a Don't change dc after qr request / phone submit. 2020-06-26 15:28:06 +04:00
John Preston 83538675ce Move a lot of settings to Core::Settings. 2020-06-23 21:53:42 +04:00
John Preston 357caf8007 Keep separate MTP::Config's for separate accounts. 2020-06-23 21:53:41 +04:00
John Preston 0ad7dcaef9 Remove MTP::MainInstance() global access point. 2020-06-23 21:53:40 +04:00
John Preston ea86433be5 Remove some activeAccount() calls. 2020-06-23 21:53:39 +04:00
John Preston 598fb67cdf Remove Session::Exists() global access point. 2020-06-23 21:53:39 +04:00
John Preston ad4afe9293 Move session data localstorage -> storage_account. 2020-06-23 21:53:39 +04:00
John Preston 7f26f81e4f Give names to MTProto session threads. 2019-12-12 16:26:26 +03:00
John Preston e426f2895b Add download sessions if it works fast enough. 2019-12-05 14:46:28 +03:00
John Preston 91f50e8bdc Move some more code to lib_mtproto. 2019-12-02 16:11:22 +03:00
John Preston 9caac426ef Correctly check container lifetime. 2019-12-02 16:11:22 +03:00
John Preston 64535251e8 Use limited number of threads in MTP. 2019-11-29 15:36:06 +03:00
John Preston c742d7406c Make MTP::Session handle the connection thread. 2019-11-29 15:36:06 +03:00
John Preston 06f5f7f7d9 Don't always restart connection on config change. 2019-11-29 15:36:06 +03:00
John Preston e943264823 Pass MTP::Instance to MTP::Sender. 2019-11-29 15:36:05 +03:00
John Preston 8be4dfb346 Use explicit fields for sent container ids wrap. 2019-11-22 17:38:01 +03:00
John Preston 4edfd4804f Fix destroyed key clearing. 2019-11-20 16:33:45 +03:00
John Preston e6d3b2b098 Fix resending requests after new session. 2019-11-19 19:14:50 +03:00
John Preston 173ae746a2 First version of working through temp keys. 2019-11-19 13:10:51 +03:00
John Preston d9fc3619c2 Remove all signals from ConnectionPrivate. 2019-11-18 15:53:37 +03:00
John Preston cfe12f773f Move some modules to lib_mtproto. 2019-11-18 12:28:14 +03:00
John Preston be06d68468 Don't lock whole key creation by a mutex. 2019-11-15 16:16:33 +03:00
John Preston 055b99f5b0 Don't use shared_ptr for Dcenters. 2019-11-15 16:16:33 +03:00
John Preston fe1e627cac Improve working with sessions. 2019-11-15 16:16:33 +03:00
John Preston 1e252a6505 Remove old debug information. 2019-11-15 16:16:32 +03:00
John Preston 7243fb52ad Check keys that receive -404 error codes. 2019-11-15 16:16:32 +03:00