Commit Graph

5273 Commits

Author SHA1 Message Date
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