Commit Graph

6243 Commits

Author SHA1 Message Date
John Preston e3fa17dd4f Merge remote-tracking branch 'private/alpha' into cmake 2019-12-06 11:08:14 +03:00
John Preston ae8fb14f9e Use 8 seconds timeout for request duration. 2019-12-06 10:05:38 +03:00
John Preston 7fb24d77c0 Check request duration when adding sessions. 2019-12-05 16:38:28 +03:00
John Preston e426f2895b Add download sessions if it works fast enough. 2019-12-05 14:46:28 +03:00
John Preston ee94e78533 All mtproto downloads using DownloadMtprotoTask. 2019-12-05 11:32:33 +03:00
John Preston 78809873b0 Fix build for Linux 32 bit. 2019-12-05 11:09:37 +03:00
John Preston 4611727ab9 Rewrite webFileLoader without Storage::DownloadManager. 2019-12-04 15:15:58 +03:00
John Preston 619dbe9b11 Initial Linux build. 2019-12-04 11:22:11 +03:00
John Preston f522cc9444 Load streaming parts using Storage::DownloadManager. 2019-12-04 10:42:55 +03:00
John Preston 3ae2986c25 Allow variable count of download sessions. 2019-12-04 09:51:21 +03:00
John Preston cb2c6e4b89 Change QR code phrase. 2019-12-03 17:50:25 +03:00
John Preston fb86bb579b Correctly track DC index in Downloader-s. 2019-12-03 15:45:35 +03:00
John Preston 8535a579ca Fix by-word/paragraph text selection in WebPage. 2019-12-03 11:08:55 +03:00
John Preston 12f5ccaaa5 Use vector queues in mtproto file downloader. 2019-12-03 10:25:27 +03:00
John Preston 524d64a462 Clip intro animation by Next button. 2019-12-02 20:12:24 +03:00
John Preston 66961dce83 Closed alpha version 1.9.1.7: Update lib_spellcheck. 2019-12-02 19:23:59 +03:00
John Preston 6f092bbb57 Closed alpha version 1.9.1.7. 2019-12-02 18:52:54 +03:00
23rd d542291d8f Added ability to invoke macOS Character Palette. 2019-12-02 18:50:32 +03:00
John Preston 907965531c Don't bind key for more than 10 seconds. 2019-12-02 16:30:33 +03:00
John Preston 91f50e8bdc Move some more code to lib_mtproto. 2019-12-02 16:11:22 +03:00
John Preston 718de09aa6 Handle state / resend requests separately. 2019-12-02 16:11:22 +03:00
John Preston 3b703d7262 Keep in sent container only important msgIds. 2019-12-02 16:11:22 +03:00
John Preston efaa3ba453 Handle sent containers separately. 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 cbebcb1bc9 Fix notification about a new mtproto session. 2019-12-02 16:11:22 +03:00
John Preston 01ecd73a62 Implement build for Mac App Store. 2019-11-30 12:04:51 +03:00
John Preston eea508066c Closed alpha version 1.9.1.6. 2019-11-29 15:38:41 +03:00
John Preston b3a255b3f1 Fix file references in webpage collages. 2019-11-29 15:36:06 +03:00
John Preston ae98e4ae44 Support file reference refresh in Export. 2019-11-29 15:36:06 +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 e6c86b19db Use app config value for QR login. 2019-11-29 15:36:06 +03:00
John Preston 55f83129b7 Remove Q_OBJECTs from Intro. 2019-11-29 15:36:05 +03:00
John Preston e943264823 Pass MTP::Instance to MTP::Sender. 2019-11-29 15:36:05 +03:00
John Preston a0152557ec Cross-fade login QR. 2019-11-29 15:36:05 +03:00
John Preston f4bf79b067 Add QR code generation progress. 2019-11-29 15:36:05 +03:00
John Preston ba7762305e Use special plane icon for login QR. 2019-11-29 15:36:05 +03:00
John Preston 7dbba75776 Make login QR follow the color theme. 2019-11-29 15:36:05 +03:00
John Preston 339a80e192 Improve QR code login layout. 2019-11-29 15:36:04 +03:00
John Preston 32d567120b Change URL in Windows setup script. 2019-11-29 15:36:04 +03:00
John Preston d5718f96b8 First working auth by QR code. 2019-11-29 15:36:04 +03:00
John Preston 95ba12e3cb Update API scheme to layer 107. 2019-11-29 15:36:04 +03:00
John Preston 82f06cee55 Build OS X 10.10-10.11 version with Qt 5.6.2. 2019-11-29 15:10:33 +03:00
John Preston 2f2d698545 Use absolute paths instead of target_link_directories. 2019-11-29 13:56:07 +03:00
John Preston 90de0b687f Use faster style generation and better source groups. 2019-11-29 11:37:29 +03:00
John Preston d932271c60 Use BYPRODUCTS instead of OUTPUT for codegen. 2019-11-28 11:43:00 +03:00
John Preston 5bfb98b70d Initial build with Xcode. 2019-11-25 18:46:02 +03:00
John Preston fe1aacd37b Rename update.cpp to updater_win.cpp. 2019-11-25 18:34:02 +03:00
John Preston 8979525dc0 Closed alpha version 1.9.1.4. 2019-11-25 09:57:55 +03:00
John Preston 9d0332be0a Closed alpha version 1.9.1.3: Update lib_spellcheck. 2019-11-23 19:40:06 +03:00
John Preston 9e37088f43 Closed alpha version 1.9.1.3. 2019-11-23 19:34:15 +03:00
John Preston 8f17fe98e0 Fix using undefined variables. 2019-11-22 21:03:57 +03:00
John Preston 8be4dfb346 Use explicit fields for sent container ids wrap. 2019-11-22 17:38:01 +03:00
John Preston 46a42e02bc Fix lost bind key messages. 2019-11-22 12:06:48 +03:00
John Preston 2597bc9f4e Fix layout of polls with huge questions. 2019-11-21 18:28:49 +03:00
John Preston ec84589eca Update lib_lottie with useCache fixes. 2019-11-21 18:18:53 +03:00
John Preston 11b02b4f88 Use namespaced library aliases. 2019-11-21 17:43:20 +03:00
John Preston 9e5262008f Add more options. 2019-11-21 14:56:17 +03:00
John Preston 311a1274c5 Closed alpha version 1.9.1.2: Update lib_spellcheck. 2019-11-21 13:46:29 +03:00
John Preston 276adec0ff Fix temporary keys for media cluster. 2019-11-21 13:38:02 +03:00
John Preston 54b5342af4 Closed alpha version 1.9.1.2: Key expire in 10 min. 2019-11-20 17:30:20 +03:00
John Preston 410efc924b Closed alpha version 1.9.1.2. 2019-11-20 17:26:31 +03:00
John Preston e748a68153 Fix build for macOS. 2019-11-20 17:26:07 +03:00
John Preston 4edfd4804f Fix destroyed key clearing. 2019-11-20 16:33:45 +03:00
John Preston 4c24ec7725 Fix keys destruction on logout. 2019-11-20 14:50:19 +03:00
John Preston bdc7f4114f Move some things from SessionData. 2019-11-20 13:41:14 +03:00
John Preston 885738ac32 Always choose correct address for key creation. 2019-11-20 12:16:53 +03:00
John Preston 43bab3eeaa Fix instant restarts with additional timeout. 2019-11-20 11:23:30 +03:00
John Preston f424cb54f7 Create keys not simultaneously. 2019-11-19 19:22:02 +03:00
John Preston e6d3b2b098 Fix resending requests after new session. 2019-11-19 19:14:50 +03:00
John Preston e7e1c9aa5a Don't handle 'msg_resend_req'. 2019-11-19 14:55:39 +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 782025a0a6 Wrap 'divmodti4' the same as 'divmoddi4'. 2019-11-18 12:10:52 +03:00
John Preston a05e2f0d8d Use 'uname -m' instead of 'uname -p'. 2019-11-18 12:10:31 +03:00
John Preston 50b2b6c5b1 Use installed opus on non-Windows. 2019-11-18 11:52:06 +03:00
John Preston 1afae74d1e Remove libdee from linking. 2019-11-18 10:52:45 +03:00
John Preston da4120bddd Fix building without glib. 2019-11-18 10:52:32 +03:00
John Preston c961acabbc Include private header only if needed. 2019-11-18 10:52:08 +03:00
John Preston e5bd187d4d Use precompiled header from cmake 3.16. 2019-11-18 00:29:03 +03:00
John Preston 90c6475c8c Closed alpha version 1.9.1.1: Fix build on macOS. 2019-11-15 17:11:05 +03:00
John Preston 8fa9172818 Closed alpha version 1.9.1.1. 2019-11-15 16:16:33 +03:00
John Preston cfcd12e879 Several spellchecker fixes. 2019-11-15 16:16:33 +03:00
23rd 1ef877d9a5 Fixed moving cursor to begin/end when using reply shortcuts for macOS. 2019-11-15 16:16:33 +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 f37ab6e38e Remove checked key property. 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 3a7faffa3a Use thread_local counter in logs for thread index. 2019-11-15 16:16:32 +03:00
John Preston 8b14249cd2 Move DumpToText from Telegram to lib_mtproto. 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
John Preston 1524b4a930 Allow creating temporary keys. 2019-11-15 16:16:32 +03:00
John Preston 08bfe6f1c1 Extract mtproto key generation code. 2019-11-15 16:16:32 +03:00
John Preston 70dbd9e5b4 Add base::expected. 2019-11-15 16:16:26 +03:00
John Preston 2577bedeac Remove mtproto/facade.h from main pch. 2019-11-13 11:31:12 +03:00
Christian Hesse 0c0c8f3584 libnotify: capabilities are not exclusive
Capabilities "actions" and "body-markup" can be available at the
same time.

Signed-off-by: Christian Hesse <mail@eworm.de>
2019-11-13 11:22:08 +03:00
Nicholas Guriev 793862bee6 Fix -Wredundant-move and -Wdeprecated-copy warnings (#6663)
* Do not move result at end of function

This makes GCC 9.1.2 happy with the active -Wredundant-move warning.
Indeed, such moving of local variables or local arguments before
returning is unnecessary and prevents the compiler from copy elision
optimization.
2019-11-12 18:15:34 +03:00
RadRussianRus a196b0aba7 Fixed animated stickers cache 2019-11-11 19:46:33 +03:00
John Preston 61723bd794 Initial Windows Debug build with cmake. 2019-11-11 13:39:48 +03:00
John Preston 85060cd655 Compile all code with cmake. 2019-11-09 19:06:00 +03:00
John Preston c4da31c213 Add lib_storage as submodule. 2019-11-08 15:00:15 +03:00
John Preston a18baaae2c Add all code generation targets. 2019-11-08 14:08:40 +03:00
John Preston 02a71d745d Build lib_ui with cmake. 2019-11-08 13:05:59 +03:00
John Preston b7fed0377c Build codegen utils with cmake. 2019-11-08 11:30:20 +03:00
John Preston 6a668fc171 'TDESKTOP_DISABLE_CRASH_REPORTS' => 'DESKTOP_APP_DISABLE_..' 2019-11-07 13:53:55 +03:00
John Preston 35befb2b3c Fix snapcraft build. 2019-11-07 13:11:47 +03:00
John Preston 86695f60a3 Fix selected text colors on macOS. 2019-11-07 13:11:40 +03:00
John Preston 4e1e7a5a9c Beta version 1.9.1: gyp fixes. 2019-11-06 19:44:50 +03:00
John Preston 2677a86ffd Beta version 1.9.1.
- Bug fixes and other minor improvements.
2019-11-06 19:32:29 +03:00
John Preston c8a98b6429 Fix appveyor build. 2019-11-06 19:25:46 +03:00
23rd 16d06527be Updated lib_spellcheck.
- Fixed #6756.
2019-11-06 15:45:03 +03:00
23rd c867727e1c Removed spellcheck setting for OS X 10.10/10.11 version. 2019-11-06 15:31:41 +03:00
John Preston 1a4c1cbbf4 Link xkbcommon-x11 and build Qt with XCB XKB.
Fixes #6754.
2019-11-06 12:03:54 +03:00
John Preston c1a241c7e7 Upload full source tarballs to assets. 2019-11-06 11:11:16 +03:00
John Preston 3023a383fc Update build scripts. 2019-11-06 00:27:20 +03:00
John Preston 54a64c01dc Version 1.9.
- System spellchecker on Windows 8+ and macOS 10.12+.
2019-11-05 17:46:42 +03:00
John Preston 3fd2d73f04 Fix layout in the spellchecker settings block. 2019-11-05 17:44:39 +03:00
John Preston d1e2fec760 Fix crash in destructor of spellchecked input field. 2019-11-05 17:03:48 +03:00
John Preston b94ed1fc3b Remove 'mac32' and add 'osx' special targets. 2019-11-05 15:45:55 +03:00
John Preston 9a44531953 Return GCC feature checks on Linux. 2019-11-05 14:51:03 +03:00
John Preston 1eb62579e2 Support building OS X 10.10/10.11 version. 2019-11-05 14:27:42 +03:00
John Preston 88e0342e02 Update to the latest submodules. 2019-11-05 14:27:42 +03:00
John Preston 6a0c7f3909 Update docs, fix patches revision. 2019-11-05 14:27:41 +03:00
23rd 6c2479c09f Fixed moving cursor when using reply shortcuts.
- Fixed #6038.
 - Slightly refactored comparison of modifiers.
2019-11-05 13:23:56 +03:00
John Preston f945e88d13 Fix tilde workaround in Open Sans. 2019-11-05 13:23:56 +03:00
John Preston bd0aee2f77 Use userpic if no photo thumbnail is loaded. 2019-11-05 13:23:56 +03:00
John Preston d63e50944a Update submodules to the latest spellcheck. 2019-11-05 13:23:56 +03:00
John Preston 272f2d937b Fix build in Linux. 2019-10-20 22:05:35 +04:00
John Preston 6529edff92 Closed alpha version 1.8.15.2. 2019-10-20 21:43:31 +04:00
23rd 155d28d6d0 Updated lib_ui. 2019-10-20 21:11:38 +04:00
23rd aa9dc2bee2 Added phrases for spellchecker. 2019-10-20 21:11:38 +04:00
23rd 4be178c75f Added SpellingHighlighter to InputField in HistoryWidget and some boxes. 2019-10-20 21:11:38 +04:00
23rd 6e95cfc24d Added lib_spellcheck. 2019-10-20 21:11:37 +04:00
23rd 1056021059 Added new setting to disable spellchecker. 2019-10-20 21:11:37 +04:00
John Preston d535f5b3bc Fix build in Linux. 2019-10-20 21:09:07 +04:00
John Preston 92d48a7846 Fix build on Windows. 2019-10-20 15:32:44 +04:00
John Preston 467be135d6 Fix build in macOS. 2019-10-20 15:24:09 +04:00
John Preston 768a3d5a12 Backport a fix for custom window title. 2019-10-20 14:23:02 +04:00
John Preston 27a83a7a09 Use base::FileNameFromUserString. 2019-10-20 14:22:46 +04:00
John Preston 3ae7f9f93d Fix color conversion for Qt 5.12.5. 2019-10-20 13:00:36 +04:00
John Preston e952c513d5 Use old non-crashing rlottie. 2019-10-20 12:13:20 +04:00
John Preston 3ce72d0696 Closed alpha version 1.8.15.1. 2019-10-19 12:27:56 +04:00
John Preston 28719939a0 Fix tray icon on macOS in Qt 5.12.5. 2019-10-19 12:27:56 +04:00
John Preston 85acdbc7ed Disable custom scaling by envvar. 2019-10-19 12:27:56 +04:00
John Preston b880d4aa30 Use custom named fonts. 2019-10-19 12:27:56 +04:00
John Preston 01936b5f1b Build with Qt 5.12.5 and OpenSSL 1.1.1. 2019-10-19 12:27:56 +04:00
John Preston c6b3257412 Update lib_ui.
Fixes #6632, fixes #6635.
2019-10-19 12:27:56 +04:00