Commit Graph

6243 Commits

Author SHA1 Message Date
John Preston 787b5f549a Update slowmode intervals. 2019-08-09 11:50:49 +01:00
John Preston e8a28a57df Fix adding contacts.
Regression was introduced in 06982fdf04.
2019-08-09 11:50:49 +01:00
John Preston b05ea9fc25 Fix some problems in working with rlottie. 2019-08-09 11:50:49 +01:00
John Preston 8d94cfb61b Fix support mode sending. 2019-08-09 11:50:49 +01:00
John Preston d8a58991c4 Closed alpha version 1.7.15.3. 2019-07-28 18:01:13 +02:00
John Preston 03cf8b6ac2 Improve transport nonce generation. 2019-07-28 18:01:13 +02:00
John Preston 32e8ae2b9e Fix sticker suggestions by emoji.
Regression was introduced in 27f248645c.
2019-07-28 15:45:46 +02:00
John Preston 27d84befa8 Remove emoji from custom admin ranks. 2019-07-28 15:39:06 +02:00
John Preston 3bf709d459 Add Ui::Text::Italic modifier. 2019-07-27 23:09:15 +02:00
John Preston 2a8b6f05c8 Fix build for GCC. 2019-07-27 17:19:04 +02:00
John Preston f29b331470 Fix build for Xcode. 2019-07-27 17:19:04 +02:00
John Preston a8b74d4b6b Closed alpha version 1.7.15.2. 2019-07-27 17:19:04 +02:00
John Preston 415d817034 Show notification without sound for silent message. 2019-07-27 17:19:04 +02:00
John Preston 3f2cc01f48 Allow sending silent messages. 2019-07-27 17:19:04 +02:00
John Preston f1cd70d8a8 Fix some instructions and build process. 2019-07-27 17:19:04 +02:00
John Preston bacaf805b5 Pass SessionNavigation to some boxes. 2019-07-25 20:55:11 +02:00
John Preston 137fa0378c Remove some more Auth() calls. 2019-07-24 16:00:30 +02:00
John Preston ff44094ded Rename AuthSession to Main::Session. 2019-07-24 13:45:24 +02:00
John Preston 06982fdf04 Remove some calls to Auth(). 2019-07-24 13:13:51 +02:00
John Preston 9cf4cf6dca Move MTP::Instance to Main::Account. 2019-07-24 10:46:23 +02:00
John Preston db2018c765 Fix owner badges in groups. 2019-07-24 08:37:10 +02:00
John Preston 020e62fb7a Closed alpha version 1.7.15.1. 2019-07-24 08:02:58 +02:00
John Preston 2ed5552279 Improve custom badge input phrases. 2019-07-24 08:02:20 +02:00
John Preston 4d92d74de0 Add python extensions to the list of executables. 2019-07-24 08:02:20 +02:00
John Preston 4fd50cfb70 Fix build in Xcode. 2019-07-24 08:02:20 +02:00
John Preston 27f248645c Use correct animated sticker thumbnails size. 2019-07-24 08:02:20 +02:00
John Preston 3f1a2d0b58 Support emoji in custom admin badges. 2019-07-24 08:02:20 +02:00
John Preston 6fe36e6534 Improve custom rank input UI. 2019-07-24 08:02:20 +02:00
John Preston f36e2981ca Display custom admin ranks in messages. 2019-07-24 08:02:20 +02:00
John Preston 22f210ea8e Support sending albums to slowmode groups. 2019-07-24 08:02:20 +02:00
John Preston b23bfe8b02 crl: std::terminate instead of exceptions. 2019-07-24 08:02:20 +02:00
John Preston 6aa930d510 Remove exceptions in TL parsing. 2019-07-24 08:02:20 +02:00
John Preston 4a10a88ecf Show error when forwarding to slowmode group. 2019-07-24 08:02:20 +02:00
John Preston f4754f210c Update full channel on updateChannel. 2019-07-24 08:02:20 +02:00
John Preston 873b77cf40 Use UserData::isBot where applicable. 2019-07-24 08:02:20 +02:00
John Preston a7d9aa947b Don't allow in-notification reply with slowmode. 2019-07-24 08:02:20 +02:00
John Preston 234b0ffcf0 Disallow accidental failing forwarding. 2019-07-24 08:02:20 +02:00
John Preston c50ade565a Track sending and failed messages. 2019-07-24 08:02:20 +02:00
John Preston 0005e0a3ce Track local messages, restore on history jump. 2019-07-24 08:02:20 +02:00
John Preston 04bf24288a Show slowmode error messages. 2019-07-24 08:02:20 +02:00
John Preston 01d0479335 Show slowmode button in chat. 2019-07-24 08:02:20 +02:00
John Preston 055c145af5 Fix manage group box after migration. 2019-07-24 08:02:20 +02:00
John Preston 328b090877 Save slowmode settings in groups. 2019-07-24 08:02:20 +02:00
John Preston 1d2c86839b Add slowmode slider to EditPeerPermissionsBox. 2019-07-24 08:02:20 +02:00
John Preston 59574532c6 Add slowmode send message button state. 2019-07-24 08:02:20 +02:00
John Preston 4544a2e331 Update API scheme to layer 104. 2019-07-24 08:02:20 +02:00
John Preston c0f8ab8da0 Fix build for old Qt version. 2019-07-18 21:52:13 +02:00
John Preston d02617867c Beta version 1.7.15.
- Bug fixes and other minor improvements.
2019-07-18 18:18:05 +02:00
John Preston 78c99a1583 Revert "Change macOS sign certificate name."
This reverts commit 4757ad6c97.
2019-07-18 18:18:05 +02:00
John Preston 9ec797857d rlottie: Return thread support. 2019-07-18 18:18:05 +02:00
John Preston b310011dee rlottie: Disable image loader code. 2019-07-18 12:12:02 +02:00
23rd 633084ed9c Fixed position of already shown tabbed panel.
- Fixed #6301.
2019-07-18 12:09:53 +02:00
23rd ab8889b2fa Fixed position of emoji panel in SendFilesBox when new file is added. 2019-07-18 12:09:53 +02:00
23rd d563e746ab Added ability to go to bot from "via @bot" header with Ctrl.
- Fixed #2074.
2019-07-18 12:09:53 +02:00
John Preston 7c6ede0908 Save domain in different localstorage key. 2019-07-15 16:00:30 +02:00
John Preston c22aeb8b40 Fix crash in proxy list. 2019-07-15 16:00:30 +02:00
John Preston cabe06256b Validate dcOption secrets. 2019-07-15 16:00:30 +02:00
John Preston 2fad4e9956 Closed alpha version 1.7.14.2. 2019-07-15 16:00:30 +02:00
John Preston c5df4db621 Fix possible race conditions in msgid(). 2019-07-15 16:00:30 +02:00
John Preston 68b1024dd4 Sync local time with HTTP 'Date' header value. 2019-07-15 16:00:29 +02:00
John Preston c894ce30c4 Fix socket packet reading. 2019-07-15 15:59:20 +02:00
John Preston 33fce38f90 Fix build in Xcode and GCC. 2019-07-15 15:59:20 +02:00
John Preston e123399f7c Closed alpha version 1.7.14.1. 2019-07-15 15:59:20 +02:00
John Preston 0805c09446 Allow one or two '=' at the end of base64. 2019-07-15 15:59:20 +02:00
John Preston 8135f4b427 Support base64 encoding of the secret. 2019-07-15 15:59:20 +02:00
John Preston 2f0331b2e0 Implement send/receive for the new type. 2019-07-15 15:59:20 +02:00
John Preston 69b6b48738 Add new socket type. 2019-07-15 15:59:20 +02:00
John Preston 3cda267787 Abstract out tcp socket from tcp connection. 2019-07-15 15:59:20 +02:00
John Preston ffba901620 Add a confirmation when blocking a user. 2019-07-15 15:47:40 +02:00
John Preston 2351865961 Update libtgvoip submodule. 2019-07-15 15:00:15 +02:00
John Preston 7a11d1e31f Fix stickers on Linux 32 bit. 2019-07-15 14:17:22 +02:00
John Preston f2b3d9714f Fix sticker sending from clipboard. 2019-07-15 14:12:28 +02:00
John Preston 8477956117 Fix emoji button.
Fixes #6264.
2019-07-15 14:12:28 +02:00
John Preston 77b8d56c03 Show 'None' if no users are blocked. 2019-07-15 14:12:27 +02:00
John Preston 90fb9eccd4 Optimize InvokeQueued(). 2019-07-10 19:37:00 +02:00
John Preston c3c6571835 Add checks for incorrect sticker cache bytes. 2019-07-10 19:36:27 +02:00
John Preston b9d3ba621e Change some private header includes. 2019-07-10 19:36:27 +02:00
John Preston 4757ad6c97 Change macOS sign certificate name. 2019-07-10 19:36:26 +02:00
John Preston 9c909c8992 Lower the animated sticker requirements.
Fixes #6237.
2019-07-09 14:53:23 +02:00
John Preston 0710dde4d5 Use private Qt color API only in official build.
Fixes #6219.
2019-07-09 13:43:57 +02:00
John Preston 8008d8a3d4 Fix build for Xcode. 2019-07-07 17:11:45 +02:00
John Preston 5c5eead0f5 Version 1.7.14.
- Bug fixes and other minor improvements.
2019-07-07 15:34:35 +02:00
John Preston 696c70e34a Update rlottie, remove asserts in debug build. 2019-07-07 13:14:19 +02:00
John Preston 75fd2d0257 Version 1.7.13.
- Send ultra-lightweight high-quality animated stickers
to express emotion with motion.
- Receive animated stickers instantly on any connection
at just 20-30 KB per sticker.
- Enjoy smooth animations at 60 frames per second.
- Create new animated sets and upload them to @stickers
for everybody to use.
- Try out these sample stickers: t.me/addstickers/hotcherry
- Use strikethrough and underline formatting.
2019-07-06 15:27:31 +02:00
John Preston 4e595d5cef Fix GIFs preview. 2019-07-06 15:24:23 +02:00
23rd 8486ad368e Fixed restrictions for channels.
- Regression was introduced in 567bf60644.
2019-07-06 10:58:10 +03:00
John Preston ae075e9b90 Beta version 1.7.12: Fix build for old OS X. 2019-07-05 23:13:31 +02:00
John Preston 86d7143d94 Beta version 1.7.12.
- Bug fixes and other minor improvements.
2019-07-05 22:55:09 +02:00
John Preston 4e52da91c7 Fix animation stopping in chat. 2019-07-05 19:47:40 +02:00
John Preston 198de85ce5 Limit to 30 FPS in small stickers. 2019-07-05 19:15:25 +02:00
John Preston 72a9d61b97 Fix glitches on macOS stickers. 2019-07-05 18:13:27 +02:00
John Preston 96a26b44a9 Fix build for Xcode. 2019-07-05 17:08:33 +02:00
John Preston f19ff1f9b2 Correctly start lottie animations. 2019-07-05 16:43:21 +02:00
John Preston 4bd0683e91 Guard UpdateRequest handling. 2019-07-05 16:29:02 +02:00
John Preston 567bf60644 Use getters in MTP classes. 2019-07-05 16:23:07 +02:00
John Preston 3ca28c0cf9 Fix crash in unsupported message with buttons.
Fixes #6212.
2019-07-05 09:42:51 +02:00
John Preston 4a12e9798a Beta version 1.7.11.
- Use strikethrough and underline formatting.
- Bug fixes and other minor improvements.
2019-07-04 17:27:30 +02:00
John Preston 5c6515febb Fix strike-through text font selection. 2019-07-04 17:27:18 +02:00
23rd 4ac3aef600 Added ability to cancel reply with Ctrl + Arrow Down.
- Fixed #4636.
2019-07-04 16:41:46 +02:00
23rd 1963fca7d3 Fixed media overlay closing with Back mouse button.
- Fixed #2998.
2019-07-04 16:41:46 +02:00
23rd 5e233dab47 Fixed height of thumb in EditCaptionBox when media changes to photo. 2019-07-04 16:41:46 +02:00
23rd cf8a06302f Fixed position of unread mentions button when field changes height. 2019-07-04 16:41:46 +02:00
23rd 9c9ea8c2c0 Added ability to change order of pinned dialogs from touchbar. 2019-07-04 16:41:03 +02:00
23rd bb9e6e7b5f Added ability to display media preview from touchbar. 2019-07-04 16:28:58 +02:00
23rd 7c98f64cdb Slightly refactored display of media preview.
- Removed showMediaPreview from facades.
2019-07-04 16:28:58 +02:00
23rd da6baeb1a7 Added notifier of archiving pinned dialog to update touchbar. 2019-07-04 16:27:33 +02:00
23rd 26569683ca Refactored pinned buttons in touchbar. 2019-07-04 16:27:33 +02:00
23rd 821bd3c65b Added buttons for Underline and Strike-through text to touchbar. 2019-07-04 16:27:33 +02:00
John Preston 2d62c9b083 Prefer animated stickers in suggestion by emoji. 2019-07-04 16:26:53 +02:00
John Preston 9d09cee1cc Unblock bots without restarting from Settings. 2019-07-04 16:26:53 +02:00
John Preston 0e964b06dc Hook main queue processing to update requests. 2019-07-04 16:26:13 +02:00
John Preston b1807938ad Remove legacy langpacks. 2019-07-04 14:25:16 +02:00
John Preston b96b801b22 Disable ownership transfer to myself. 2019-07-04 14:02:25 +02:00
John Preston 58d4b763b6 Allow 6-digit support phone numbers. 2019-07-04 14:00:40 +02:00
John Preston f1518af8b3 Mark mentions as read on reply-from-notification. 2019-07-04 13:56:28 +02:00
John Preston d228495550 Allow replacing emoji by Tab in support mode. 2019-07-04 13:26:39 +02:00
John Preston 226ca6d117 Clear 'Cancelled' flag on download start.
Fixes #6123.
2019-07-04 13:21:43 +02:00
John Preston 556f36ba7e Fix transparent animated GIFs. 2019-07-04 13:12:58 +02:00
John Preston c8b61366d3 Fix blurred document thumbnails. 2019-07-04 12:22:07 +02:00
John Preston 729da4a6b4 Move 'Add to contacts' button up in Info. 2019-07-04 12:21:52 +02:00
John Preston dd38da7737 Allow markdown to intersect with previewed links. 2019-07-04 11:51:41 +02:00
John Preston 306b87dd39 Disable double click reply in a created group. 2019-07-04 11:37:05 +02:00
John Preston 826d229c1a Clear 'Find in Files' search by lang key results. 2019-07-04 11:36:27 +02:00
John Preston 89fb121caf Show URL tooltip in inline bot results. 2019-07-04 11:23:39 +02:00
John Preston d479442a63 Fix local thumbnail saving for stickers. 2019-07-04 11:04:12 +02:00
John Preston 10ee81f466 Copy shared contact number from the context menu.
Fixes #6147.
2019-07-04 10:36:48 +02:00
John Preston 0a63eac4f6 Generate good thumbnail for animated stickers. 2019-07-04 10:20:36 +02:00
John Preston 7034df49e9 Fix sending of .tgs stickers. 2019-07-03 13:03:01 +02:00
John Preston da48a78f7c Revert "Hide new formatting for now."
This reverts commit 99aa1fc556.
2019-07-03 12:08:28 +02:00
John Preston 0109ee2758 Fix build for Linux. 2019-07-03 00:20:59 +02:00
John Preston ae152d28be Closed alpha version 1.7.10.1. 2019-07-02 22:42:00 +02:00
John Preston dd1bca1769 Remove profiling logs. 2019-07-02 22:40:10 +02:00
John Preston a4fbbc06d1 Use Lottie::MultiPlayer in StickerSetBox. 2019-07-02 22:38:23 +02:00
John Preston 0dd1b4eae6 Support animated stickers in suggestions. 2019-07-02 17:21:52 +02:00
John Preston 848ea16eef Support animated stickers in inline results. 2019-07-02 15:46:26 +02:00
John Preston 76630528f7 Show animated thumbnails in sets box. 2019-07-02 15:20:04 +02:00
John Preston 3b645422ff Implement animated stickerset thumbnails. 2019-07-02 14:43:17 +02:00
John Preston db2d24ff32 Clear lottie on panel hide. 2019-07-01 17:57:40 +02:00
John Preston a10b91fe1a Don't load bad image infinitely. 2019-07-01 17:57:40 +02:00
John Preston ead212f31b Fix lottie caching. 2019-07-01 17:57:40 +02:00
John Preston 37689affc5 Clear far enough animated sticker sets. 2019-07-01 17:57:39 +02:00
John Preston 5375e7958c Implement pause/unpause for Lottie::MultiPlayer. 2019-07-01 17:57:39 +02:00
John Preston 1da5d1c64f Fix multi player with same frame rates. 2019-07-01 17:57:39 +02:00
John Preston f6bfbbb805 Add some profiling logs to lottie player. 2019-07-01 17:57:39 +02:00
John Preston 2c461b9df3 Remove profiling logs. 2019-07-01 17:57:39 +02:00
John Preston 53a3d0038c Fix build for Xcode. 2019-07-01 17:57:38 +02:00
John Preston ad1816cb7c Use Lottie::MultiPlayer in StickersListWidget. 2019-07-01 17:57:38 +02:00
John Preston 09c9f4ef9a Implement Lottie::MultiPlayer. 2019-07-01 17:57:38 +02:00
John Preston cbffeca8d5 Extract some Lottie::Animation code to Lottie::Player. 2019-07-01 17:57:37 +02:00
John Preston 4a7b5a8e01 Fix caching for large sticker area. 2019-07-01 17:57:37 +02:00
John Preston 808583c5ae Store cached frames in media local cache. 2019-07-01 17:57:37 +02:00
John Preston 5628c1eee6 Encode cached frames to YUV420P. 2019-07-01 17:57:36 +02:00
John Preston 0b8aa880e5 Decide if we XOR frames for each frame. 2019-07-01 17:57:36 +02:00
John Preston 059a24bcdf Use lz4 compression for cached frames. 2019-07-01 17:57:36 +02:00
John Preston df8625345b Add lz4 as a submodule. 2019-07-01 17:57:35 +02:00
John Preston a026aec786 Trivial in-memory frame caching. 2019-07-01 17:57:35 +02:00
John Preston 56e137b20f Move some common code to lib_ffmpeg. 2019-07-01 17:57:35 +02:00
John Preston 10772f4ac5 Started Lottie::CacheState class. 2019-07-01 17:57:34 +02:00
John Preston 35bc2cc2a5 Prepare lottie animations caching. 2019-07-01 17:57:34 +02:00
John Preston f20d9395d1 Unpack lottie gzip to std::string for rlottie. 2019-07-01 17:57:34 +02:00
John Preston aa3a079853 Remove QtLottie and rapidjson. 2019-07-01 17:57:34 +02:00
John Preston e43fcc0e5f rlottie: Fix build for macOS with static Qt. 2019-07-01 17:57:33 +02:00
John Preston b10e6b3508 Render animated stickers using rlottie. 2019-07-01 17:57:33 +02:00
John Preston b36f7dfdb1 Build rlottie as a dependency. 2019-07-01 17:57:33 +02:00
John Preston f08d913175 Add rlottie submodule. 2019-07-01 17:57:33 +02:00
John Preston 21dfb310f3 Optimize animated sticker preview. 2019-07-01 17:57:32 +02:00
John Preston 0d6ee3929d Show animated stickers in the panel. 2019-07-01 17:57:32 +02:00
John Preston 040cae6a9a Show animated sticker preview. 2019-07-01 17:57:32 +02:00
John Preston 8f3f898c47 Show animated stickers in StickerSetBox. 2019-07-01 17:57:32 +02:00
John Preston 10910588a0 Update API scheme to layer 103. 2019-07-01 17:57:31 +02:00
John Preston adf5c8ec71 Version 1.7.10: Fix group location display. 2019-06-24 15:31:23 +02:00
John Preston f77b11975b Version 1.7.10: Ownership transfer flood errors. 2019-06-24 15:14:32 +02:00
John Preston 84aaec30a1 Version 1.7.10: Ownership transfer in admin log. 2019-06-24 15:08:19 +02:00
John Preston 764490b4a9 Version 1.7.10: Add share phone confirmation. 2019-06-24 14:49:53 +02:00
John Preston 022fb0c81b Version 1.7.10: Fix sticker set title.
Fixes #6169.
2019-06-24 14:32:43 +02:00
John Preston d5497c3105 Version 1.7.10: Don't load OpenSSL config on Win. 2019-06-24 14:23:08 +02:00
John Preston 09162e6f19 Version 1.7.10.
- Bug fixes and other minor improvements.
2019-06-24 14:16:19 +02:00
John Preston f46189041c Use non-installed OpenSSL in Windows. 2019-06-24 13:43:42 +02:00
John Preston 7c2f114330 Force OpenSSL not loading local config. 2019-06-24 12:49:37 +02:00
John Preston a04247a893 Show archive2mainmenu tooltip for 5 seconds. 2019-06-24 11:14:19 +02:00
John Preston 3a8a74f063 QtLottie: Fix easing curve segment selection. 2019-06-24 11:09:00 +02:00
John Preston 9c85d58235 Fix crash in closing export panel. 2019-06-24 10:59:21 +02:00
John Preston e5cfa3fdc9 Fix adding to contacts + closing box crash.
Regression was introduced in b9d1d8519c.
2019-06-24 10:07:32 +02:00
John Preston 5c49701603 Fix 2SV setup.
Regression was introduced in 0dddb7694f.
2019-06-24 09:55:12 +02:00
John Preston 978a4ac0ad Version 1.7.9.
- You can now add any users to your contacts,
even if their phone numbers are not visible.
- Transfer ownership of group chats and channels
by granting full rights to another admin.
Useful when switching jobs or if you just want to retire as creator.
- Hide archived chats to the main menu.
- See who is online straight from the chat list.
- Use the MacBook Pro TouchBar to apply formatting to selected text,
insert emoji, and send stickers.
2019-06-23 16:49:31 +02:00
John Preston 8a7980ca7b Fix build for old OS X versions. 2019-06-23 16:49:21 +02:00
John Preston 29532f8232 Remove GPL and GitHub from translations. 2019-06-23 16:43:43 +02:00
23rd ee4501810c Added restriction info of posting stickers to touchbar. 2019-06-23 16:36:22 +02:00
John Preston 99aa1fc556 Hide new formatting for now. 2019-06-23 16:10:53 +02:00
John Preston 8741266819 Add support for Underline and Strike-through text. 2019-06-23 15:40:59 +02:00
John Preston d864ebd695 Fix private channel phrase in Discuss. 2019-06-23 14:34:48 +02:00
John Preston 352839337d Add SCAM badge for users and channels. 2019-06-23 14:18:33 +02:00
John Preston 88b7387a40 Closed alpha version 1.7.8.1: Fix build for Xcode. 2019-06-22 22:42:30 +02:00
John Preston d0cf39f8ed Closed alpha version 1.7.8.1. 2019-06-22 22:13:06 +02:00
23rd d57b8d2ec7 Added preload of stickers in touchbar. 2019-06-22 22:13:06 +02:00
23rd 8de3826c9e Disabled posting stickers with touchbar in groups with restrictions. 2019-06-22 22:13:06 +02:00
23rd 3ea0247a3e Slightly refactored touchbar. 2019-06-22 22:13:06 +02:00
23rd bebf58ea8d Fixed display of online badge in pinned Saved Messages in touchbar.
- Fixed #6162.
2019-06-22 22:13:06 +02:00
23rd 7489f2297f Fixed title of favorite stickers in touchbar. 2019-06-22 22:13:06 +02:00
23rd c7526ae1cd Fixed title of recently used emoji in touchbar.
- Added "No found" title if sticker list is empty.
2019-06-22 22:13:06 +02:00
23rd 07a063e19e Refactored formatter buttons in touchbar. 2019-06-22 22:13:06 +02:00
23rd 3727c8c865 Grouped sticker and emoji buttons in touchbar. 2019-06-22 22:13:06 +02:00
23rd 662d0d0764 Added emoji picker to touchbar.
- Added independent size of emoji for touchbar.
 - Added rpl::event_stream for recent emoji updates.
2019-06-22 22:13:06 +02:00
23rd dcba07b9b7 Added sticker picker to touchbar. 2019-06-22 22:13:06 +02:00
John Preston a4d83b679a Allow searching USA by 'United States'. 2019-06-22 22:12:47 +02:00
John Preston dc102bd9e8 Finish working with localstorage before ~AuthSession. 2019-06-22 12:36:35 +02:00
23rd f877bf7a46 Fixed display of views count. 2019-06-22 11:53:23 +02:00
John Preston a0171cb144 Fix crash in MainWindow destruction. 2019-06-22 11:52:41 +02:00
John Preston 7d585ab72f Handle located groups as public. 2019-06-21 14:27:46 +02:00
John Preston 6537e524b8 Fix build for GCC. 2019-06-21 11:06:52 +02:00
John Preston 4917ca7b32 Remove all legacy global namespace langs. 2019-06-21 11:06:52 +02:00
John Preston edcd09c29f Remove LangKey. 2019-06-21 11:06:51 +02:00
John Preston 87fc066e67 Use tr:: instead of lang(). 2019-06-21 11:06:51 +02:00
John Preston d3ca6b96a1 Use tr:: instead of __generic. 2019-06-21 11:06:50 +02:00
John Preston 52e40cbc6e Improve non-authed language switch. 2019-06-21 11:06:50 +02:00
John Preston a7c8feaecb Use tr:: instead of langFactory and __rich. 2019-06-21 11:06:50 +02:00
John Preston d1d98c3bb1 Use tr:: instead of langFactory in box titles. 2019-06-21 11:06:50 +02:00
John Preston 8ed433cc01 Use tr:: instead of langFactory in input fields. 2019-06-21 11:06:49 +02:00
John Preston 7af0dd105e Use tr:: instead of Lang::Viewer. 2019-06-21 11:06:49 +02:00
John Preston f35085800a Fix build in GCC. 2019-06-21 11:06:49 +02:00
John Preston 366413a0a6 Fix build in Xcode. 2019-06-21 11:06:48 +02:00
John Preston faa42110ac Remove Info::Profile::ToUpperValue. 2019-06-21 11:06:48 +02:00
John Preston 87cb0ada98 Allow skipping archive results in messages search. 2019-06-21 11:06:48 +02:00
John Preston 6a1abe8767 Add transfer ownership description box. 2019-06-21 11:06:48 +02:00
John Preston 7f96a185cf Add rpl interface for Lang in tr:: namespace. 2019-06-21 11:06:48 +02:00
John Preston 91c57f2035 Support intersecting links with entities. 2019-06-21 11:06:48 +02:00
John Preston 522e66b2db Make Ui::Text::Parser methods non-inclass. 2019-06-21 11:06:48 +02:00
John Preston 2d10e3e432 Show toast notification on ownership transfer. 2019-06-21 11:06:47 +02:00
John Preston d23fd3559a Refresh participants after transfer. 2019-06-21 11:06:47 +02:00
John Preston 3c11eda611 Allow transfer of legacy groups. 2019-06-21 11:06:47 +02:00
John Preston b9d1d8519c Use need_contacts_exception flag in add contact. 2019-06-21 11:06:47 +02:00
John Preston 8f3f072b50 Implement channel ownership transfer. 2019-06-21 11:06:47 +02:00
John Preston a68a53d768 Prepare PasscodeBox for generic 2sv checking. 2019-06-21 11:06:47 +02:00
John Preston 0dddb7694f Show transfer community button, set 2sv password. 2019-06-21 11:06:47 +02:00
John Preston ca7c50fbcd Remove pseudo-HTML from langpacks and Ui::Text::String. 2019-06-21 11:06:46 +02:00
John Preston 9066acd2dd Use new box for editing contact name. 2019-06-21 11:06:46 +02:00
John Preston 2162aa8df0 Rename Text to Ui::Text::String. 2019-06-21 11:06:46 +02:00
John Preston e9677779b8 Show phone number only in the chat top bar. 2019-06-21 11:06:46 +02:00
John Preston aca3ec0ab8 Implement block + clear from ContactStatus bar. 2019-06-21 11:06:46 +02:00
John Preston 3a34b15841 Add 'Share my phone number' click handler. 2019-06-21 11:06:45 +02:00
John Preston 08d4715ad6 Implement a new AddToContactBox. 2019-06-21 11:06:45 +02:00
John Preston 213a8d888a Implement report spam from ContactStatus bar. 2019-06-21 11:06:45 +02:00
John Preston f49c7ba7ee Allow hiding contact status bar. 2019-06-21 11:06:45 +02:00
John Preston 984f19b1e9 Implement adaptive ContactStatus buttons. 2019-06-21 11:06:45 +02:00
John Preston 5e3734d7bf ReportSpamPanel -> HistoryView::ContactStatus. 2019-06-21 11:06:45 +02:00
John Preston 30dea3a2e7 Use isConstant bool instead of ContactStatus enum. 2019-06-21 11:06:45 +02:00
John Preston 14b82698f8 Update API scheme to layer 102. 2019-06-21 11:06:44 +02:00
John Preston 37df26fc34 QtLottie: Fix easing curve segment selection. 2019-06-19 15:16:59 +02:00
John Preston 42798d466f Fix crash in theme changing. 2019-06-19 15:16:59 +02:00
John Preston 9ca4f0975a Use 'ms' restriction tag for Windows Store build. 2019-06-18 15:45:09 +02:00
John Preston 26da5c5339 Beta version 1.7.8.
- Hide archived chats in the main menu.
- See who is online straight from the chat list.
- Apply formatting to selected text parts
from the MacBook Pro TouchBar.
2019-06-17 18:35:03 +02:00
John Preston d0b86e1229 Optimize online dots + add animations. 2019-06-17 18:13:05 +02:00
John Preston 61c66994a2 Optimize online dot painting. 2019-06-17 16:33:28 +02:00
John Preston 034bee8fc3 Optimize Folder::paintUserpic. 2019-06-17 15:30:46 +02:00
23rd 734ecc070b Refactored skipping of rows in Dialogs::InnerWidget. 2019-06-17 15:30:46 +02:00
23rd ece315f3c5 Added ability to move archive in main menu.
- Added Folder::paintUserpic overload for custom color.
 - Reduced size of _cloudButton.
2019-06-17 15:30:46 +02:00
23rd 484ecffb66 Slightly refactored touchbar. 2019-06-17 14:36:25 +02:00
23rd 77a216cbca Added online badges to touchbar. 2019-06-17 14:36:19 +02:00
23rd d9426413dd Added online badges to chats list. 2019-06-17 14:36:14 +02:00
23rd 859cfe4cbb Added formatting buttons to touchbar. 2019-06-17 14:35:51 +02:00
John Preston e7c40ff2a8 Return 'View info' to right-click menu. 2019-06-17 14:28:16 +02:00
John Preston 90ecec1d2e Add more assertions in online update. 2019-06-17 14:23:50 +02:00
John Preston d9e93fb5cc Fix possible crash in auth session destruction. 2019-06-17 14:23:50 +02:00
John Preston e7bdcc4155 Add more assertions to animations engine. 2019-06-17 14:23:50 +02:00
John Preston fa3bf11a7f Fix possible crash in corrupt media files. 2019-06-17 14:23:50 +02:00
John Preston 3013301a91 Version 1.7.7.
- Download video files while watching them using streaming.
- Set EOL for Windows XP / Vista and OS X 10.6 to 10.9 at September 1.
2019-06-10 10:21:15 +02:00
John Preston 96acecc35b Remove newline in support mode message edit. 2019-06-08 18:19:20 +03:00
John Preston f8d900d7fb Fix freezes in support mode message edit. 2019-06-08 18:19:20 +03:00
John Preston ce760f0534 Comment out App type in SpecialConfigRequest. 2019-06-07 18:43:06 +03:00
John Preston 1225c9194a Fix window title on Windows 7.
Regression was introduced in dd68c7e90.

Fixes #6106.
2019-06-07 14:46:07 +03:00
John Preston abfe685697 Beta version 1.7.6.
- Bug fixes and other minor improvements.
2019-06-06 16:08:46 +03:00
John Preston 37ff1bde31 QtLottie: Fix spatial property interpolation. 2019-06-06 16:04:10 +03:00
John Preston b674003868 Fix build for Xcode. 2019-06-06 15:07:34 +03:00
John Preston 0868a9f7b9 Use Controller::account in MainWindow. 2019-06-06 14:59:00 +03:00
23rd ae3fae44b2 Fix build on macOS. 2019-06-06 14:21:31 +03:00
John Preston dd68c7e90d Use Window::Controller to manage MainWindow. 2019-06-06 14:20:21 +03:00
John Preston a547f80ae9 Rename Window::Controller to Window::SessionController. 2019-06-06 13:21:40 +03:00
John Preston 263bbf1788 Move _authSession to Main::Account. 2019-06-06 12:37:12 +03:00
John Preston 94c4ea6174 Access _authSession through activeAccount(). 2019-06-05 23:41:51 +03:00
John Preston bd2e1ceb02 Wrap AuthSession in a new Main::Account object. 2019-06-05 22:47:54 +03:00
John Preston 8c67a4b991 Strip auto-hashtag in support mode message editing. 2019-06-05 21:40:21 +03:00
John Preston 126ffc8769 Show user profile from Removed Users. 2019-06-05 21:30:34 +03:00
John Preston 4379fa2297 Handle PHONE_NUMBER_BANNED in ChangePhoneBox. 2019-06-05 20:43:33 +03:00
John Preston b9bd937aaa Treat url auth button as an url button. 2019-06-05 20:42:10 +03:00
John Preston 351ba3a912 Allow adding bots as admins when creating a channel. 2019-06-05 20:15:17 +03:00
John Preston c2b2236e64 Show error-by-privacy in adding user as admin. 2019-06-05 19:47:08 +03:00
John Preston 6f4e31c9c3 Allow resending auth code in case of FLOOD_WAIT error. 2019-06-05 18:50:42 +03:00
John Preston 1290cda830 Fix theme preview layout. 2019-06-05 18:42:46 +03:00
John Preston a27a80351a Fix clearing history with local messages. 2019-06-05 18:15:49 +03:00
John Preston e53f4a5450 Close streamed video on Escape. 2019-06-05 17:54:12 +03:00
John Preston 65b949d36b Fix crash in lottie animations. 2019-06-05 17:49:12 +03:00
John Preston a8d3951116 Beta version 1.7.5.
- Crash fix.
2019-06-05 15:15:50 +03:00
John Preston f91e11efc9 Fix crash in absent file reading. 2019-06-05 14:27:33 +03:00
23rd ed7a88ca17 Fixed display of update checking when autoupdate is toggled. 2019-06-05 01:09:31 +03:00
John Preston dcdaee3db2 Beta version 1.7.4: Fix build for Xcode. 2019-06-04 21:13:47 +03:00
John Preston c7b1683f6e Beta version 1.7.4: Use loadedInMediaCache for songs. 2019-06-04 18:59:26 +03:00
John Preston 961fd1dbab Beta version 1.7.4.
- Download video files while watching them using streaming.
- Set EOL for Windows XP / Vista and OS X 10.6 to 10.9 at September 1.
2019-06-04 18:59:05 +03:00
John Preston 2f963d7f12 Fix default broadcast notification settings. 2019-06-04 16:40:24 +03:00
John Preston 5be9ce0cf0 Update some icons. 2019-06-04 16:30:39 +03:00
John Preston 04e3b250e7 Keep track of fully cached media files. 2019-06-04 14:30:44 +03:00
John Preston 2255eb2c68 Show loaded till in playback slider. 2019-06-04 14:30:44 +03:00
John Preston 0ce5405eef Show download progress in playback controls. 2019-06-04 14:30:43 +03:00
John Preston 46d8d9f97a Remove CancelledFileLoader hack. 2019-06-04 14:30:43 +03:00
John Preston 274fed3cb0 Move several fields to bit flags in DocumentData. 2019-06-04 14:30:43 +03:00
John Preston 021ada5e9e Hide save button in media viewer when downloading. 2019-06-04 14:30:43 +03:00
John Preston 6f2a04e5ae Add ordering to file location types. 2019-06-04 14:30:43 +03:00
John Preston eb438e35ee Remove old download priority arguments. 2019-06-04 14:30:43 +03:00
John Preston b2895a39ed Register streaming loaders in Storage::Downloader. 2019-06-04 14:30:43 +03:00
John Preston cca906d383 Use ready parts from loader in streaming. 2019-06-04 14:30:43 +03:00
John Preston 8704f6efd0 Use simple loader for non-streamable file types. 2019-06-04 14:30:43 +03:00
John Preston e1114530ab Working code for streaming downloader. 2019-06-04 14:30:43 +03:00
John Preston 27018d94ee Load file parts even when not streaming. 2019-06-04 14:30:43 +03:00
John Preston 1ee4dac4f3 Parse cache entries async. 2019-06-04 14:30:43 +03:00
John Preston fe15ee742d Track in Reader if it is used in streaming. 2019-06-04 14:30:43 +03:00
John Preston ebf2a678b1 Use a special FileLoader for streamed documents. 2019-06-04 14:30:43 +03:00
John Preston 8c0cd9b9e9 Prepare Media::Streaming::Reader to be shared. 2019-06-04 14:30:43 +03:00
John Preston 8e15e71fd5 Set EOL for OS X 10.6-10.9 version at September 1. 2019-06-04 14:29:35 +03:00
John Preston 1fb529803e Add an 'Update your OS' top bar.
Set EOL for Windows XP / Vista version at September 1, 2019.
2019-06-04 14:28:13 +03:00
John Preston 9c613fe2f7 Move system versions to platform/platform_info. 2019-06-04 14:23:14 +03:00
23rd 0467401635 Fixed missing bracket in Qt patch. 2019-06-03 21:01:11 +03:00
John Preston 4fd6a85861 Add app manifest for Windows version. 2019-06-03 16:20:59 +03:00
John Preston 3d38abce97 Differentiate Windows Store and Mac Store. 2019-06-03 13:54:25 +03:00
John Preston 271d929ad6 Use VersionHelper API for Windows version. 2019-06-03 13:48:57 +03:00
paulkim3151 ef364e998f Enable to handle .pptx .xlsx .docx extensions 2019-06-03 13:48:49 +03:00
John Preston 53ba300d7e Version 1.7.3: Fix checkbox in url auth. 2019-06-01 12:44:13 +03:00
John Preston caf1af8963 Version 1.7.3: Fix possible stack overflow. 2019-06-01 12:30:45 +03:00
John Preston 9fce11b672 Version 1.7.3.
- Bug fixes and other minor improvements.
2019-06-01 11:29:58 +03:00
John Preston f7cb38c36a Allow admins to see the linked chat. 2019-06-01 11:27:05 +03:00
John Preston d7ab7aed62 Fix crash in unlinking discussion group. 2019-06-01 11:13:40 +03:00
John Preston ea61211a61 Version 1.7.2: Mix peer to grouped_id. 2019-06-01 00:51:57 +03:00
John Preston c560f327cd Version 1.7.2: Update version in code. 2019-05-31 21:17:08 +03:00
23rd b45705f39d Returned render color theme in main menu when background is filled. 2019-05-31 21:10:53 +03:00
John Preston 9871184953 Fix discussion group unlinking. 2019-05-31 19:47:48 +03:00
John Preston 7f74084237 Update some more phrases. 2019-05-31 19:47:31 +03:00
John Preston 0fc1a40b42 Update phrases. 2019-05-31 16:02:53 +03:00
John Preston 45a6985df5 Force GTK file chooser only in the official builds. 2019-05-31 12:03:10 +03:00
John Preston 619aca04f9 Don't show report spam over the chat history. 2019-05-30 21:53:13 +03:00
John Preston a968e112e8 Fix crash on invalid lottie file selection. 2019-05-30 18:09:44 +03:00
John Preston 325323e0b3 QtLottie: Fix assertion violation. 2019-05-30 18:05:23 +03:00
John Preston b012847017 Fix storage location serialization. 2019-05-30 18:05:23 +03:00
John Preston 56d3e69399 Auto-convert legacy groups for discussions. 2019-05-30 18:05:23 +03:00
John Preston f1c7409980 Enable history visibility when linking chat. 2019-05-30 18:05:23 +03:00
John Preston 33ea5ad297 Allow searching in link group to channel box. 2019-05-30 18:05:23 +03:00
23rd a5ea13f248 Changed background color of Saved Messages button in main menu. 2019-05-29 20:11:47 +03:00
23rd 8796572704 Renamed touchbar files to mac_touchbar. 2019-05-29 00:15:36 +03:00
John Preston 8829b742fd Beta version 1.7.1.
- Disabled pinned messages notifications in Settings.
2019-05-28 18:45:27 +02:00
John Preston a2b0631932 Hide linked chat button for now. 2019-05-28 17:47:36 +02:00
John Preston 8b804d1995 Allow sending animated stickers. 2019-05-28 17:45:30 +02:00
John Preston af85aec33b Allow disabling pinned messages notifications.
Fixes #1864.
2019-05-28 16:59:35 +02:00
John Preston e0d4884351 Fix possible crash in animations. 2019-05-28 14:46:18 +02:00
John Preston b3f5973329 Fix possible crash in calendar box. 2019-05-28 14:33:42 +02:00
John Preston f0ed5640db Fix sending messages with links. 2019-05-28 14:33:35 +02:00
John Preston 39a80e9de7 Fix warning when building for macOS. 2019-05-28 13:40:04 +02:00
John Preston ff0ff1d99c Fix stickers lagging on macOS. 2019-05-28 13:39:38 +02:00
23rd ab16c88473 Fixed crash from touchbar after logout. 2019-05-28 01:28:49 +03:00
23rd 26ec440a13 Implemented unread badges in touchbar. 2019-05-28 01:22:58 +03:00
John Preston fa245099b6 Fix build with GCC 8. 2019-05-27 17:32:06 +02:00
John Preston ea644a3f81 Fix Release build in Xcode. 2019-05-27 17:32:01 +02:00
John Preston 9b6d41a0aa Closed alpha version 1.7.0.1.
- Discussion groups in channels.
- Animated stickers.
- Touchbar support.
- Chat background in the main menu.
2019-05-27 17:24:40 +02:00
23rd 7798f88c6f Moved vars from interface to implementation in touchbar. 2019-05-27 17:01:47 +02:00
23rd 2c1e3cd094 Added theme change event handler to touchbar. 2019-05-27 17:01:41 +02:00
John Preston f1e3d2f513 Disable touchbar on macOS < 10.13. 2019-05-27 17:01:29 +02:00
John Preston 0f08342533 Fix QtLottie build for old OS X versions. 2019-05-27 16:54:28 +02:00
John Preston 2a96f358f6 Fix build in Xcode. 2019-05-27 15:56:33 +02:00
23rd bafa838afc Refactored code in touchbar.
- Refactored variables.
 - Moved TouchBarType to Platform namespace.
2019-05-27 15:35:04 +02:00
23rd de3cc76468 Fixed position of Saved Messages in touchbar when user unpins it. 2019-05-27 15:35:04 +02:00
23rd b4df7b4efd Replaced observable updatedNotifier() with rpl. 2019-05-27 15:35:03 +02:00
23rd 26be382b02 Refactored touchbar code.
- Moved item identifiers.
 - Deleted once called methods.
 - Moved commands of buttons to its tag.
 - Moved some methods to namespace.
2019-05-27 15:35:03 +02:00
23rd 7dff10f6fd Refactored code for lifetimes in touchbar. 2019-05-27 15:35:03 +02:00
23rd 71f6dd85c2 Fixed showing empty button in touchbar when archive is not ready. 2019-05-27 15:35:02 +02:00
23rd abd55679af Added archived button to touchbar. 2019-05-27 15:35:02 +02:00
23rd c90e803f1b Added handler of logout to touchbar. 2019-05-27 15:35:02 +02:00
23rd c89a21ef5e Refactored touchbar code. 2019-05-27 15:35:02 +02:00
23rd 04843ebdd8 Fixed duplicate of Saved Messages in touchbar when it is pinned.
- Moved updating of pinned dialogs order from PinnedDialogButton to TouchBar class.
2019-05-27 15:35:01 +02:00
23rd 60cf1b6490 Fixed drawing of self userpic. 2019-05-27 15:35:01 +02:00
23rd a80f7c53ea Replaced Apple icons for touchbar with custom icons in audio player. 2019-05-27 15:35:01 +02:00
23rd 757e0e6335 Slightly refactored, removed archive button. 2019-05-27 15:35:00 +02:00
23rd 09b5055fac Enabled audio player in touchbar only for songs. 2019-05-27 15:35:00 +02:00
23rd ba1691bf7e Added custom close icon to touchbar
- Slightly refactored.
2019-05-27 15:35:00 +02:00
23rd 9873e6d75c Fixed seeking of slider from audio player in touchbar. 2019-05-27 15:34:59 +02:00
23rd 62a6812259 Added ability to update pinned dialogs. 2019-05-27 15:34:59 +02:00
23rd c424607603 Added passcode lock handler for touchbar. 2019-05-27 15:34:58 +02:00
23rd 92ff237c2d Refactored code. 2019-05-27 15:34:58 +02:00
23rd 9059b2e617 Fixes for Audio Player in touchbar.
- Removed unused Platform::SetTouchBar.
 - Added rpl::event_stream in Media Player Instance for handle closing player.
 - Fixed hiding of touchbar when last track is ended.
 - Fixed display of time when last track is ended.
 - Slightly refactored.
2019-05-27 15:34:58 +02:00
23rd 2b8e76a060 Replaced Auth.lifetime() in buttons with internal lifetime. 2019-05-27 15:34:58 +02:00
23rd 9c60d2be80 Updated for archive support. 2019-05-27 15:34:58 +02:00
23rd 3b7123d159 Added auto updating of button images when peer changed userpic. 2019-05-27 15:34:57 +02:00
23rd 2f2847bfdf Moved Saved Messages button to subclass. 2019-05-27 15:34:57 +02:00
23rd 8099305c53 Added buttons of pinned dialogs in main touch bar. 2019-05-27 15:34:56 +02:00
23rd 3eadc62cd5 Added close player button, slightly improved switching of touch bar. 2019-05-27 15:34:55 +02:00
23rd c9f56abce5 Added initial implementation of switching between touch bars. 2019-05-27 15:34:55 +02:00
23rd 58604406f8 Added initial implementation touchbar. 2019-05-27 15:34:54 +02:00
John Preston a49806bf79 Only admin can unlink channel from the group. 2019-05-27 15:30:23 +02:00
John Preston 65a36e49bd Support custom forwarded text in url auth button. 2019-05-27 15:26:12 +02:00
John Preston db66e93258 Allow to return to the original chat on forward. 2019-05-27 15:10:11 +02:00
John Preston 2f1b029ec9 Don't suggest emoji on :[non-letter]. 2019-05-27 15:10:08 +02:00
John Preston 0eb975e679 Allow disabling first-word emoji suggestions. 2019-05-27 15:10:06 +02:00
John Preston a49a96ba33 Fix archive search input field focus. 2019-05-27 15:10:04 +02:00
John Preston d2d51cc883 Fix field showing on write access enabling. 2019-05-27 15:09:59 +02:00
John Preston e8a99a854d Add unread badge to Discuss button. 2019-05-27 15:09:57 +02:00
John Preston a64c8c52b4 Correctly display discussion posts sender. 2019-05-27 15:09:56 +02:00
John Preston 01054858a4 Url auth checkboxes checked by default. 2019-05-27 15:09:53 +02:00
John Preston 87caa58456 Forward some inline keyboards. 2019-05-27 15:09:52 +02:00
John Preston 6b9675a5b1 Correctly display discussion posts. 2019-05-27 15:09:50 +02:00
John Preston 371f1a51c3 Preload blocked users slice in Settings. 2019-05-27 15:09:47 +02:00
John Preston 8aaaef3ff4 Show 'channel' badge for discussed messages. 2019-05-27 15:09:45 +02:00
John Preston 7fbec0dbca Show admin log events for linked chats. 2019-05-27 15:09:43 +02:00
John Preston 0a86e732cd Add a footer to EditLinkedChatBox. 2019-05-27 15:09:42 +02:00
John Preston 4e10552c12 Add a confirmation for linking a discussion group. 2019-05-27 15:09:41 +02:00
John Preston 0eae8fe6a0 Hide date from archive dialog. 2019-05-27 15:09:39 +02:00
John Preston ee2c7fad78 Allow creating discussion groups for channels. 2019-05-27 15:09:37 +02:00
John Preston b9d89cb4a0 Allow unlinking the discussion group. 2019-05-27 15:09:35 +02:00
John Preston f0eba3e283 Show Discuss button in channels. 2019-05-27 15:09:32 +02:00
John Preston 801b500aa6 Use session() instead of Auth() in HistoryWidget. 2019-05-27 15:09:30 +02:00
John Preston 9c1ce702bb Display channel posts in discussion groups. 2019-05-27 15:09:28 +02:00
John Preston 50778790fe Start supporting channel discussion groups. 2019-05-27 15:09:25 +02:00
John Preston b05bf049bc Fix add member icon position. 2019-05-27 15:09:23 +02:00
John Preston c92a798e1b Support url authorizations. 2019-05-27 15:09:18 +02:00
John Preston 8660f976a9 Add phone number privacy.
Also move calls peer-to-peer privacy inside calls privacy.
2019-05-27 15:09:15 +02:00
John Preston f5c79cb1b6 Use new next_rate field for global search. 2019-05-27 15:09:13 +02:00
John Preston 6b80ff4bcc Support groups in privacy settings. 2019-05-27 15:09:12 +02:00
John Preston 3556fbf702 Pause animated stickers as GIFs. 2019-05-27 15:09:09 +02:00
John Preston 3577e71782 Validate mime type of animated stickers. 2019-05-27 15:09:07 +02:00
John Preston c4aac5fa0e Update API scheme to layer 100. 2019-05-27 15:09:06 +02:00
John Preston 68fb9b8b67 Remove benchmarks. 2019-05-27 14:11:27 +02:00
John Preston 630c07391c QtLottie: Fix gradients. 2019-05-27 14:11:27 +02:00
John Preston 4ab3c2dfcb Add support for gzip-ed animated stickers. 2019-05-27 14:11:27 +02:00
John Preston 973c3f8838 QtLottie: Migrate from Qt JSON to rapidjson. 2019-05-27 14:11:27 +02:00
John Preston a03d42daa8 Add rapidjson submodule. 2019-05-27 14:11:27 +02:00
John Preston 0c84fc1271 QtLottie: Remove unnecessary includes. 2019-05-27 14:11:27 +02:00
John Preston 0f25638545 QtLottie: Don't build JSON to parse shapes. 2019-05-27 14:11:27 +02:00
John Preston f58efd7ee3 QtLottie: Allow building properties from data. 2019-05-27 14:11:27 +02:00
John Preston 26c29f6af7 QtLottie: Move everything to Lottie namespace. 2019-05-27 14:11:27 +02:00
John Preston ab82ff0fb7 QtLottie: Completely detach from upstream. 2019-05-27 14:11:27 +02:00
John Preston 12a4a849ca QtLottie: Make property parsing non-virtual. 2019-05-27 14:11:27 +02:00
John Preston 38e2837cb6 Remove MOC for QtLottie. 2019-05-27 14:11:27 +02:00
John Preston 0e7cefb69c QtLottie: Use QStringLiteral instead of QLatin1String. 2019-05-27 14:11:27 +02:00
John Preston 21eaa35d8c QtLottie: Drop expressions. 2019-05-27 14:11:27 +02:00
John Preston c1ae825d98 Add some benchmarks. 2019-05-27 14:11:27 +02:00
John Preston fbc206ebee QtLottie: Enforce BM nodes parent. 2019-05-27 14:11:27 +02:00
John Preston 67739ae3fd Don't try to keep up if animation got late. 2019-05-27 14:11:27 +02:00
John Preston 7ee16ba45c Clear hidden animated stickers. 2019-05-27 14:11:26 +02:00
John Preston 236513943c Fix animated sticker selection. 2019-05-27 14:11:26 +02:00
John Preston cfff744cb1 Parse and render lottie in the background. 2019-05-27 14:11:26 +02:00
John Preston 61b6effccc View some more files as stickers. 2019-05-27 14:11:26 +02:00
John Preston 642deecbbb Allow loading lottie animations from memory. 2019-05-27 14:11:26 +02:00
John Preston 707aa88974 Animated stickers proof of concept. 2019-05-27 14:11:26 +02:00
John Preston 5b04698f5f QtLottie: Suboptimal fix for spatial properties. 2019-05-27 14:11:26 +02:00
John Preston 246e4e45bd QtLottie: Add partial support for masksProperties. 2019-05-27 14:11:26 +02:00
John Preston f2ef2fab4f QtLottie: Support many geometry shapes in a group. 2019-05-27 14:11:26 +02:00
John Preston 1a2755f126 QtLottie: Ignore opacity in null layer transform. 2019-05-27 14:11:26 +02:00
John Preston 801580c46f QtLottie: Apply even inactive parent transforms. 2019-05-27 14:11:26 +02:00
John Preston 3f1ec52e6c QtLottie: Fix precomp layer start time. 2019-05-27 14:11:26 +02:00
John Preston 2c422dcd73 QtLottie: Add BMScene root class. 2019-05-27 14:11:26 +02:00
John Preston 6abf74530d QtLottie: Check each layer for visibility by frame. 2019-05-27 14:11:26 +02:00
John Preston 08ad74da8f QtLottie: Fix parent transform in precomp layers. 2019-05-27 14:11:26 +02:00
John Preston 38427aa52a Fix build in Xcode. 2019-05-27 14:11:26 +02:00
John Preston 68eb48be8d QtLottie: Fix scaling in some animations. 2019-05-27 14:11:26 +02:00
John Preston 5e5b4197e9 QtLottie: Apply opacity in BMFill and BMStroke. 2019-05-27 14:11:26 +02:00
John Preston 48eb5dd112 QtLottie: Bug fixes. 2019-05-27 14:11:26 +02:00
John Preston 9b7e3dc3ec QtLottie: Fix SpatialProperty interpolation. 2019-05-27 14:11:26 +02:00
John Preston d1518da1ad Provide animation duration. 2019-05-27 14:11:26 +02:00
John Preston 2f02198ac7 QtLottie: Add support for precomp layer. 2019-05-27 14:11:26 +02:00
John Preston da845a089e QtLottie: Rebase onto upstream/dev. 2019-05-27 14:11:26 +02:00
John Preston 2caa3e3def QtLottie: Add precomp assets parsing. 2019-05-27 14:11:26 +02:00
John Preston f9a32dc70f QtLottie: Add support for null layer. 2019-05-27 14:11:26 +02:00
John Preston 8dc7f8b8a1 QtLottie: Fix prepending mask layer. 2019-05-27 14:11:26 +02:00
John Preston 78d3bdfe3a Fix build in Xcode. 2019-05-27 14:11:26 +02:00
John Preston fbfd3ddd68 Partially support new spec keyframes parsing. 2019-05-27 14:11:26 +02:00
John Preston 33b3fa68f0 QtLottie: Rebase onto upstream/dev. 2019-05-27 14:11:26 +02:00
John Preston 2fae2278f7 QtLottie: Fix UB in last keyframe easing point.
Example: https://lottiefiles.com/427-happy-birthday

The present box top was rendered below the body or not depending on
the uninitialized bytes from QBezier.
2019-05-27 14:11:26 +02:00
John Preston f073963582 Preview lottie animations in media viewer. 2019-05-27 14:11:26 +02:00
John Preston 22c2054dcf First attempt to use QtLottie. 2019-05-27 14:11:26 +02:00
23rd b2e5ab36d4 Moved shadow drawing from paintEvent in MainMenu::refreshBackground. 2019-05-27 14:10:36 +02:00
23rd 159f90a42c Added background analysis in main menu for better readability. 2019-05-27 14:10:36 +02:00
23rd 08a3a5747a Added custom background to top of main menu. 2019-05-27 14:10:36 +02:00
23rd 47910b2ae1 Added '-scale' command-line argument for custom scale.
- Fixed #5272.
 - Fixed #5365.
 - Fixed #6055.
2019-05-27 14:10:36 +02:00
23rd 5f97b3bc22 Added ability to open links without confirmation with Ctrl key.
- Fixed #6051.
2019-05-27 14:10:35 +02:00
23rd cf45b0d317 Added ability to send not loaded GIFs with Ctrl key. 2019-05-27 14:10:35 +02:00
23rd 1dd461b24a Moved left elision of counters to Dialogs::Layout::paintUnreadCount. 2019-05-27 14:10:35 +02:00
John Preston 626e7c1f76 Workaround MSVC 16.1 bugs. 2019-05-27 14:10:35 +02:00
udf 288b7ba100 Actually fix display SendFilesBox via historyAttach button. 2019-05-26 14:23:37 +02:00
udf 2b8951b2ac Revert "Fixed display SendFilesBox via historyAttach button."
This reverts commit a0926f2d70 because it
doesn't do what it should do :(
2019-05-26 14:23:37 +02:00
Konstantin Tcepliaev 48cee21b9f Re-enable integrated GPU on macOS.
This limits the fix introduced in a058e75a to just 10.14.4,
as #5858 seems to be fixed in 10.14.5.
2019-05-20 20:22:36 +03:00
23rd b2f821d3de Updated version of GCC to 8. 2019-05-20 15:59:06 +03:00
Vitaly Zaitsev 3d3d024878 Fixed building of PCH using Clang compiler.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-05-20 15:46:27 +03:00
John Preston 9a4fdb1530 Use only lt_count in langpacks. 2019-05-20 15:44:51 +03:00
23rd 63a6893fda Excluded ability to display 0 views in channel posts. 2019-05-20 15:44:51 +03:00
23rd dcd5aa83da Fixed choosing of plural when number should be shortened. 2019-05-20 15:44:51 +03:00
23rd 5901b42a83 Added generation of string with decimal separated numbers.
- Added new plural tag "kPluralDecimalSeparationTag".
 - Added Lang::PluralType for default, shorted and decimal separated numbers.
 - Replaced members and votes count with decimal separated type.
2019-05-20 15:44:51 +03:00
23rd 5d321f7c59 Moved generation of short string for large numbers in one place.
- Added new plural tag "kPluralShortTag".
 - Added support of new plural tag to code generator.
 - Removed FormatViewsCount from history_message.
 - Removed FormatLargeNumber from history_media_poll.
 - Added FormatCountToShort to lang_tag.
2019-05-20 15:44:51 +03:00
23rd dc27bfff2d Fixed elision of user name in side menu. 2019-05-16 11:58:28 +03:00
23rd 63fc552636 Fixed inability to close folder with Back mouse button.
- Fixed #5997.
2019-05-12 22:30:19 +03:00
Vitaly Zaitsev ddb9c84a1d Allow GNU/Linux maintainers to forward launcher name.
Use optional compiler directive -DTDESKTOP_LAUNCHER_FILENAME to forward
required XDG desktop file name.

If not specified, fallback to default value will be used.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-05-10 12:08:58 +03:00
John Preston 69960a47da Apply telegram-wayland-icon.patch from Flatpak version. 2019-05-10 09:22:21 +03:00
John Preston 58aaed4c0f Fix build script for Mac App Store. 2019-05-09 18:45:18 +03:00
John Preston 8af684f7f7 Version 1.7.
Introducing Archived Chats:

- Archive any chat from the right-click menu.
- Chats with enabled notifications will pop out of the archive
when a notification arrives.
- Muted chats will stay in the archive.
- Pin an unlimited number of chats in your archive.
2019-05-08 23:55:33 +03:00
John Preston 0fe0311b45 Fix chats list accidental scrolling. 2019-05-08 23:48:04 +03:00
23rd 89a0cd3e81 Fixed closing folder by Escape when opened dialog in one column mode.
Dialog should be opened by shortcut.
2019-05-08 23:47:39 +03:00
John Preston 6de30b1137 Closed alpha version 1.6.7.3. 2019-05-08 12:44:01 +03:00
John Preston d26924dd6b Allow multiline no-newline input fields.
Fixes poll option limit warning.
2019-05-08 12:36:13 +03:00
John Preston 4293a4857f Show user profile from channel Removed Users.
Fixes #5974.
2019-05-08 12:25:16 +03:00
John Preston aec6e17b5d Allow revoking any messages in private chats. 2019-05-08 12:14:42 +03:00
John Preston 64dd5139da Show unread archive chat names in bold. 2019-05-08 12:05:15 +03:00
John Preston e55e46a0f0 Show last chats in archive dialog row. 2019-05-08 11:50:39 +03:00
John Preston 4f65d0469c Use dedicated color for archive title. 2019-05-08 11:07:21 +03:00
John Preston a0e2a925ee Filter command line arguments passed to Qt.
See https://www.bleepingcomputer.com/news/security/
qt5-based-gui-apps-susceptible-to-remote-code-execution/

This RCE exploit doesn't affect Telegram Desktop directly, because
Telegram Desktop uses statically linked Qt and does not load any
plugins from external shared libraries. But in any case it's better
to control how command line arguments can affect the app behaviour.

For now pass only the first command line part, the executable path.
2019-05-06 12:40:04 +02:00
John Preston 8bfef7d873 Improve collapsed rows in small chats list. 2019-05-03 17:02:00 +04:00
John Preston 2d4a743231 Update some icons. 2019-05-03 15:35:22 +04:00
John Preston 0247e876df Remove locally saved empty histories. 2019-05-03 15:18:18 +04:00
John Preston 39b7f307a4 Show muted mention icon in archive. 2019-05-03 15:12:48 +04:00
John Preston 4356b1c193 Allow collapsing archive in the chats list. 2019-05-03 15:08:53 +04:00
John Preston 6f885fb6cc Fix creating dialog rows for new groups. 2019-05-02 22:30:52 +04:00
John Preston 5f1cb9d31c Put archive action on top of the menu. 2019-05-01 17:10:11 +04:00
John Preston 9b430147c0 Remove some unused langpack keys. 2019-05-01 16:43:37 +04:00
John Preston 4e8c57a861 Fix assertion violation in marking history as read. 2019-05-01 16:43:19 +04:00
John Preston d9ad3a4bbe Jump to chats list top on folder change. 2019-05-01 16:11:47 +04:00
John Preston 4ad8c4877c Close archive by escape even if chat is shown. 2019-05-01 16:11:47 +04:00
John Preston edf4180d11 Don't suggest to archive Saved Messages. 2019-05-01 16:11:47 +04:00
John Preston d48cafe1a3 Improve manage group box styles. 2019-05-01 16:11:47 +04:00
John Preston aede79640d Ctrl+1..5 always activate pinned from main chats list. 2019-05-01 16:11:47 +04:00
John Preston 4dae89310d In archive allow scroll-down-by-pinned-drag. 2019-05-01 16:11:46 +04:00
John Preston 6102795856 Fix proxy promoted channel chats-list position. 2019-05-01 16:11:46 +04:00
John Preston 7669b8e12b Don't suggest to archive proxy sponsor. 2019-05-01 16:11:45 +04:00
John Preston 5c9a907c88 Closed alpha version 1.6.7.2. 2019-05-01 16:11:45 +04:00
John Preston 116b5d006a Divide public/private phrases for groups/channels. 2019-05-01 16:11:45 +04:00
John Preston db35c3de3b Fix block chat list loading by date. 2019-05-01 16:11:45 +04:00
John Preston be64f18e96 Fix dialogs list creation in support mode. 2019-05-01 16:11:45 +04:00
John Preston 39008bf6fe Fix reading of client side unread messages. 2019-05-01 16:11:44 +04:00
John Preston c9552390e7 Fix stack overflow crash in emoji panel hiding.
A call to hideChildren before setting _hiding to the desired value
could lead through leaveEvent to a recursive call to hideAnimated.
2019-05-01 16:11:44 +04:00
John Preston 5c3f93eee1 Fix crash in replies.
Regression was introduced in b1df3c0ec4.
2019-05-01 16:11:44 +04:00
John Preston cf0d4a0559 Improve design of video download state. 2019-05-01 16:11:44 +04:00
John Preston ee5c819cef Fix render glitch in archive top bar. 2019-05-01 16:11:43 +04:00
John Preston ca548a11d7 Fix assertion violation in History::inboxRead(). 2019-05-01 16:11:43 +04:00
John Preston 0b26475300 Fix render glitches in passcodebox. 2019-05-01 16:11:43 +04:00
John Preston d74992b85b Closed alpha version 1.6.7.1. 2019-05-01 16:11:42 +04:00
John Preston 08bddc5579 Move messages data to AuthSession. 2019-05-01 16:11:42 +04:00
John Preston cb3e649e61 Correctly handle cloud archive unread state. 2019-05-01 16:11:42 +04:00
John Preston accb20a571 Improve archived toast notification. 2019-05-01 16:11:41 +04:00
John Preston 08101ba666 Forbid to archive Telegram Notifications. 2019-05-01 16:11:41 +04:00
John Preston 430a3c2cec Fix important switch hiding in folders. 2019-05-01 16:11:41 +04:00
John Preston 48ad171a29 Clear chats list context menu a bit. 2019-05-01 16:11:41 +04:00
John Preston 5f62c2100c Count unread marks in non-fully loaded folders. 2019-05-01 16:11:40 +04:00
John Preston 4c571f5bff Fix adding first chat to archive. 2019-05-01 16:11:40 +04:00
John Preston 52b9212625 Display top bar in archive. 2019-05-01 16:11:40 +04:00
John Preston f56df0e1d9 Show folder using slide animation. 2019-05-01 16:11:39 +04:00
John Preston 6dd8f32f66 Fix build on Xcode. 2019-05-01 16:11:39 +04:00
John Preston 5ab1cd405a Fix nice vote percents. 2019-05-01 16:11:39 +04:00
John Preston 3dd2a6bb5b Update archive row on chat list name change. 2019-05-01 16:11:39 +04:00
John Preston 9ff02707bf Improve archive chat list entry layout. 2019-05-01 16:11:38 +04:00
John Preston 2d1dcb36cb Use folder_id / still_unread_count from updates. 2019-05-01 16:11:38 +04:00
John Preston 01d5589594 Add archived results in chats search. 2019-05-01 16:11:38 +04:00
John Preston 40532e32ab Enforce changelog message visibility. 2019-05-01 16:11:38 +04:00
John Preston ceec71d3e6 Track real latest message in the folder. 2019-05-01 16:11:37 +04:00
John Preston 8fd811517b Count unread correctly in folders. 2019-05-01 16:11:37 +04:00
John Preston 58519300ea Support pinned chats in folders. 2019-05-01 16:11:37 +04:00
John Preston 607655941d Improve Ui::Menu interface. 2019-05-01 16:11:37 +04:00
John Preston 9acdc4eac1 Show folder bar on top when folder is opened. 2019-05-01 16:11:36 +04:00
John Preston 518ff146b2 Don't allow reordering of the archive. 2019-05-01 16:11:36 +04:00
John Preston 74c65f30f7 Load folder dialogs while scrolling. 2019-05-01 16:11:36 +04:00
John Preston 83306bb01f Replace QList with std::deque in notifications. 2019-05-01 16:11:36 +04:00
John Preston f3ed7a674a Create dialog rows only with known folders. 2019-05-01 16:11:35 +04:00
John Preston 854870683b Add ability to archive/unarchive the chats. 2019-05-01 16:11:35 +04:00
John Preston c58f097535 Correctly move histories between chat lists. 2019-05-01 16:11:35 +04:00
John Preston 0367319934 Load folder dialogs list. 2019-05-01 16:11:35 +04:00
John Preston be0cf8d379 Use std::vector in rpl::lifetime. 2019-05-01 16:11:34 +04:00
John Preston 305a611211 Load dialogs list in ApiWrap and Data::Session. 2019-05-01 16:11:34 +04:00
John Preston 927735dff2 Start showing folder chats list. 2019-05-01 16:11:34 +04:00
John Preston 0c0d6bc411 Move chats / contacts lists to Data::Session. 2019-05-01 16:11:33 +04:00
John Preston 2862070348 Use vector instead of custom linked list. 2019-05-01 16:11:20 +04:00
John Preston 58d86af399 Remove SplittedWidget paint optimization.
It doesn't work with dialogs-to-top button anyway.
2019-05-01 16:11:16 +04:00
John Preston 76c3e9a529 Display title and userpic of archived chats. 2019-05-01 16:11:14 +04:00
John Preston 9bf8a8108d Comment out non-folder feed code. 2019-04-25 14:16:30 +04:00
John Preston 905a024aed Update API scheme to layer 99. 2019-04-25 14:16:29 +04:00
23rd e1000b79a3 Fixed display of file sizes with invalid dimensions when edit media. 2019-04-25 14:11:07 +04:00
John Zimmermann c2a10f9c56 Linux: manually set desktop file name
resolves #5180
2019-04-25 13:41:19 +04:00
John Zimmermann 4d42e7e5b9 Correctly set _desktopFile to Telegram.desktop if Telegram.desktop was found 2019-04-25 13:39:40 +04:00
Amos Bird e200a7d502 Do not break type aliasing rule 2019-04-25 13:38:39 +04:00
John Preston 6f242f284f Notarize update builds. 2019-04-23 19:24:36 +04:00
John Preston 25471f3952 Add notarization to build script. 2019-04-23 19:24:36 +04:00
John Preston 72690ee106 Enable hardened runtime on macOS build. 2019-04-23 19:24:36 +04:00
John Preston edc8c23772 Fix custom download path in Mac App Store build.
Fixes #5903.
2019-04-13 19:49:13 +04:00
John Preston 0023fdc707 Version 1.6.7.
- Replace media when editing messages with media content.
- Jump quickly to the top of your chats list.
- Get emoji suggestions for the first word you type in a message.
- Help Telegram improve emoji suggestions in your language
using this interface https://translations.telegram.org/en/emoji
2019-04-13 10:46:58 +04:00
John Preston 2518250ae0 Fix wronly marking channel as forbidden.
Regression was introduced in 826d6011a1.

Fixes #5923.
2019-04-13 10:34:35 +04:00
John Preston 08cd46cd4c Fix crash in streaming caching. 2019-04-12 18:49:37 +04:00
John Preston 12614ab68c Fix possible crash with nullptr screen. 2019-04-12 17:30:43 +04:00
John Preston 7cfb122dea Fix crash with event loop nesting tracking. 2019-04-12 17:30:43 +04:00
John Preston cc8f4aa24f Fix crash in history clear. 2019-04-12 17:30:42 +04:00
23rd 60e36b1411 Left animation to top only for dialogs up button. 2019-04-12 16:32:36 +04:00
John Preston 8aa0b31c1a Beta version 1.6.6: Fix removing saved peers from chats list.
Regression was introduced in a7f67c4bc9.
2019-04-11 11:46:54 +04:00
John Preston 56b6673e17 Beta version 1.6.6: Fix animations engine. 2019-04-11 10:43:13 +04:00
John Preston c310cdbb8c Beta version 1.6.6.
- Bug fixes and other minor improvements.
2019-04-11 10:20:30 +04:00
John Preston 71f340d9b5 Revert "Don't restart animations timer."
This reverts commit 392d90dc1d.

Otherwise scrolling while typing animates lags terribly on macOS.
2019-04-11 10:16:02 +04:00
23rd 5187e6dc58 Added display of image dimensions instead of 0 bytes when is doc. 2019-04-11 10:11:09 +04:00
23rd c21f5712f8 Disabled pasting images with bad size from clipboard for albums.
- Slightly refactored.
2019-04-11 10:10:25 +04:00
23rd c6eccc655f Disabled sending images with bad size from remoteContent for albums. 2019-04-10 11:40:16 +04:00
23rd 3767483977 Added filename generation when edit media with non-local file. 2019-04-10 11:34:43 +04:00
Vitaly Zaitsev 14ad7a2479 Fixed "Show in Folder" feature on Gnome 3.30+.
Parameter --no-desktop is deprecated and should not be used.

Closes #5896.
2019-04-10 11:20:01 +04:00
23rd ba8257ce64 Fixed top bar glitch when returning dialog back too fast. 2019-04-09 17:10:58 +03:00
John Preston 9bfa6d7cf4 Make animation tick less, almost like before.
Unfortunately otherwise animations look not smooth.

Fixes #5897.
2019-04-09 17:21:29 +04:00