Commit Graph

4739 Commits

Author SHA1 Message Date
23rd 25e3674819 Added allowsEditMedia() to Media. Slightly refactored. 2019-04-02 18:14:12 +04:00
23rd c84f99cf3a Fixed uploading edit media with thumbnails. 2019-04-02 18:14:12 +04:00
23rd 820c7ba84e Added checkbox to send photo as file for edit media. 2019-04-02 18:14:12 +04:00
23rd 6735605f21 Added animated gif preview when users edits media. 2019-04-02 18:14:12 +04:00
23rd d5a2daa8c9 Refactored edit_caption_box. 2019-04-02 18:14:12 +04:00
23rd 25177d9022 Added updating of thumbnails when user edits media. 2019-04-02 18:14:12 +04:00
23rd f24ce584db Fixed item updating when upload editing media. 2019-04-02 18:14:12 +04:00
23rd 1ed83cf193 Fixed subscribeToUploader. 2019-04-02 18:14:12 +04:00
23rd aaf61dfbad Fixed NewUnread message type. 2019-04-02 18:14:11 +04:00
23rd be58e23775 Init edit media. 2019-04-02 18:14:11 +04:00
John Preston db631acf80 Remove old animations code. 2019-04-02 14:33:54 +04:00
John Preston 74dc4e0c62 Allow disabling new animations. 2019-04-02 14:33:54 +04:00
John Preston 99bb09374d Use new animations engine everywhere. 2019-04-02 14:33:53 +04:00
John Preston a6e96f9a28 Use new animations engine in all Basic-s. 2019-04-02 14:33:53 +04:00
John Preston cd3c1c6dc0 Use new animations engine for typings. 2019-04-02 14:33:53 +04:00
John Preston 3971f27c66 Closed alpha version 1.6.3.4. 2019-04-02 14:33:53 +04:00
John Preston c4357c7ad3 Animate suggestions select-by-keyboard. 2019-04-02 14:33:53 +04:00
John Preston 1da9385fe2 Scroll suggestions by dragging. 2019-04-02 14:33:53 +04:00
John Preston 9ba65e9ca0 Skip flags and some other suggestions. 2019-04-02 14:33:53 +04:00
John Preston a12bc60ef5 Redesign emoji suggestions widget. 2019-04-02 14:33:53 +04:00
John Preston f76dc74040 Show emoji by first word after a delay. 2019-04-02 14:33:53 +04:00
John Preston 932ed20c4b Refresh emoji after server responds. 2019-04-02 14:33:53 +04:00
John Preston b353af00c9 Fix crash in login. 2019-04-02 14:33:53 +04:00
John Preston ce2204e120 Add caching for emoji keywords. 2019-04-02 14:33:53 +04:00
John Preston 4b3a9fac67 Use several LRU input languages. 2019-04-02 14:33:53 +04:00
John Preston 54ca5772f8 Closed alpha version 1.6.3.3. 2019-04-02 14:33:53 +04:00
John Preston 2dacf1b2ef Accept any characters for suggestions. 2019-04-02 14:33:53 +04:00
John Preston 817e9aa43d Fix crash in emoji keywords init. 2019-04-02 14:33:53 +04:00
John Preston dba677dcc7 Filter emoji languages by server. 2019-04-02 14:33:53 +04:00
John Preston 24dcde2f87 Closed alpha version 1.6.3.2. 2019-04-02 14:33:53 +04:00
John Preston 77fbf19a72 Use serverside keywords for emoji suggestions. 2019-04-02 14:33:53 +04:00
John Preston 3cd9d4b5ec Fix video messages playback on Retina. 2019-04-02 14:33:53 +04:00
John Preston d3bf489bea Improve base::binary_guard interface. 2019-04-02 14:33:52 +04:00
John Preston efb2972d28 Move delete-from-ToS to AuthSession. 2019-04-02 14:33:52 +04:00
23rd 3fa3428b4b Added ability to go to top of media panel by clicking on selected tab. 2019-04-02 14:33:52 +04:00
John Preston 84e9e37353 Closed alpha version 1.6.3.1: Fix build for Xcode. 2019-03-29 14:24:08 +04:00
John Preston 5c0f278775 Closed alpha version 1.6.3.1. 2019-03-29 14:24:08 +04:00
John Preston 8759d637ff Use StorageFileLocation in mtpFileLoader. 2019-03-29 14:24:07 +04:00
John Preston 95023ca770 Use StorageFileLocation in streaming loader. 2019-03-29 14:24:07 +04:00
John Preston 3f49796c43 Fix file reference updating. 2019-03-29 14:24:07 +04:00
John Preston aa8f62da9d Support new ('modern') API file locations. 2019-03-29 14:24:07 +04:00
John Preston eba2a98703 Add general StorageFileLocation abstraction. 2019-03-29 14:24:06 +04:00
John Preston d36f6a0322 Update API scheme to layer 98. 2019-03-29 14:24:06 +04:00
John Preston 9ec3d24fec Send ImageSize instead of Video for image/gif. 2019-03-26 17:40:40 +04:00
John Preston bf182697b9 Use streaming player speed in 2x playback. 2019-03-26 16:51:40 +04:00
John Preston e87084715d Fix song / voice playback. 2019-03-26 16:51:40 +04:00
John Preston 3bd1bbc77a Use Streaming::Player in video messages playback. 2019-03-26 16:51:39 +04:00
John Preston 8aaa70a05a Fix infinite group set requests on bad API responses. 2019-03-26 16:51:10 +04:00
John Preston 9b247ce5ed Version 1.6.4: Fix leaving + rejoining for channels. 2019-03-25 16:47:19 +04:00
Royal Wizard 09ff556aa6 Version 1.6.3: Add child abuse report reason (#5828) 2019-03-25 16:07:30 +04:00
John Preston a26d82eec6 Version 1.6.3:
- Bug fixes and other minor improvements.
2019-03-25 16:04:59 +04:00
John Preston bb2e683dea Fix leaving channels and supergroups.
Fixes #5838.
2019-03-25 15:52:30 +04:00
John Preston d7a67a6a1c Fix two crashes in groups edit. 2019-03-25 11:57:04 +04:00
John Preston 8c6e72b21a Hide Nobody option from profile photo privacy. 2019-03-25 11:57:04 +04:00
John Preston 0b5500fe75 Version 1.6.2.
- Delete any message on both ends in any private chat, anytime.
- Control whether your forwarded messages link back to your account.
- Control who may see your profile picture.
- Enjoy the new streamlined group management screen.
2019-03-24 18:53:06 +04:00
John Preston 2845f48430 Closed alpha version 1.6.1.1. 2019-03-24 12:12:45 +04:00
John Preston 4ba959e6e1 Use sticker set thumbnails in StickersBox. 2019-03-24 12:12:45 +04:00
John Preston 72d9ac508a Use sticker set thumbnails in the panel. 2019-03-24 12:12:45 +04:00
John Preston 386600baf9 Save and load sticker set thumbnails. 2019-03-24 12:12:44 +04:00
John Preston eb1825defd Add revoking of full history. 2019-03-24 12:12:44 +04:00
John Preston 33069739ee Improve revoke phrases. 2019-03-24 12:12:44 +04:00
John Preston dd8c526fb7 Prepare code for revoking of full history. 2019-03-24 12:12:43 +04:00
John Preston 2701e63406 Allow revoking only sent messages. 2019-03-24 12:12:43 +04:00
John Preston b972da059a Show explaining preview of forwards privacy. 2019-03-24 12:12:42 +04:00
John Preston 81862215b4 Add forwards and profile photo privacy settings. 2019-03-24 12:12:42 +04:00
John Preston a34e998c42 Handle fwd_from without a link to the account. 2019-03-24 12:12:42 +04:00
John Preston 6d1193a751 Update API scheme to layer 97. 2019-03-24 12:12:41 +04:00
John Preston 0cd7399dc9 Update API scheme to layer 96. 2019-03-24 12:12:41 +04:00
John Preston f1b0b60340 Fix possible crash in MainWindow destructor. 2019-03-24 12:12:41 +04:00
John Preston d1cf43f9a4 Fix streaming receivedTill reporting.
It was incorrect in case audio and video had different durations.
2019-03-24 12:12:40 +04:00
John Preston a0b3b1affd Fix fade in widget animation.
Fixes #5812.
2019-03-24 12:12:40 +04:00
John Preston 2a7fdfc832 Fix call icon position in single column info page. 2019-03-24 12:12:40 +04:00
John Preston 672070e618 Fix icon position in EditPeerInfoBox. 2019-03-24 12:12:39 +04:00
John Preston 6a2b1bb48d Fix HTML export wrapper. 2019-03-24 12:12:39 +04:00
John Preston db121c0839 Take album caption from any album item. 2019-03-22 14:22:49 +04:00
23rd ca9db9fd3f Refactored code.
- Removed std::optional from EditPeerHistoryVisibilityBox.
 - Added std::optional for savedCallback in EditPeerTypeBox.
 - Guarded boxCallbacks.
2019-03-22 13:40:23 +04:00
23rd ecccf673a9 Deleted unused code of Delete Button. 2019-03-22 13:40:23 +04:00
John Preston e0d7cae3fe Fix build for macOS. 2019-03-22 13:40:23 +04:00
John Preston 241526f127 Improve code style a bit. 2019-03-22 13:40:22 +04:00
23rd 4148099115 Redesigned Delete Button in EditPeerInfoBox. 2019-03-22 13:40:22 +04:00
23rd 5edf200157 Fixed focus in EditPeerTypeBox. Slightly refactored code. 2019-03-22 13:40:22 +04:00
23rd bd7ba3acb1 Refactored code.
- Slightly improved design.
 - Added "const" in EditPeerTypeBox & EditPeerInfoBox.
2019-03-22 13:40:22 +04:00
23rd e024d9bbb0 Added opening EditPeerTypeBox when error of saving username was handled. 2019-03-22 13:40:22 +04:00
23rd 3d7b8b3162 Added Invite Link button. Refactored code.
- Removed unused includes.
 - Improved design for boxes.
 - Draw buttons for EditPeerInfoBox in single place.
 - Simplified conditions for all buttons.
 - Made AddSkip more flexible.
2019-03-22 13:40:22 +04:00
23rd 8887272577 Refactored code. Removed unused code.
- Deleted manage_peer_box from sources.
2019-03-22 13:40:22 +04:00
23rd c86257568f Fixed issue when "Too much usernames" box appearing only after typing. 2019-03-22 13:40:22 +04:00
23rd ae25538706 Added opening of EditPeerInfoBox in new way. 2019-03-22 13:40:22 +04:00
23rd 21e417433b Added waiting for full data update of peer to open EditPeerInfoBox. 2019-03-22 13:40:22 +04:00
23rd cb272be805 Refactored code. Slightly improved animations and design. 2019-03-22 13:40:22 +04:00
23rd b79d8d6c82 Removed Checkbox for Sign Messages and added Toggle Button.
- That is how it looks in mobile clients.
2019-03-22 13:40:22 +04:00
23rd be8aed6a95 Added GroupTypeBox with Controller. 2019-03-22 13:40:22 +04:00
23rd d06337dddc Added HistoryVisibilityBox. 2019-03-22 13:40:22 +04:00
23rd 0f3ec47074 Begin of EditPeerBox redesigning.
- Moved buttons from ManageGroupBox to EditPeerBox.
 - Added counting of permissions.
2019-03-22 13:40:21 +04:00
23rd 3a5bad4b7a Fixed incorrect display of uploaded video's thumbnail in edited message.
- After uploading a video the data_document changes a source of the 
 good thumbnail and loses an information about it (e.g. width, height, 
 bytesSize).
2019-03-22 13:39:12 +04:00
23rd 2aecd1035e Removed "Export history" from context menu for empty chats. 2019-03-22 13:38:09 +04:00
23rd 5d04842a80 Refactored edit_caption_box. 2019-03-22 13:36:47 +04:00
23rd 59c73a4814 Fixed drawing of custom thumbnails in edit_caption_box. 2019-03-22 13:36:47 +04:00
John Preston 25affe5484 Version 1.6.1.
- Bug fixes and other minor improvements.
2019-03-20 14:32:34 +04:00
John Preston 399aed4087 Remove setting for Mac App Store version. 2019-03-20 14:31:32 +04:00
John Preston 31dbe2278e Fix possible crash in local file streaming.
Cache file size instead of requesting it from file system each time.
2019-03-20 14:21:50 +04:00
John Preston 9ed064b7fc Fix crash in streaming parts loading. 2019-03-20 13:41:13 +04:00
John Preston a59353df9f Fix possible crash in DomainResolver.
App::CallDelayed() could be queued twice for a single key, if before
the delayed call we cleared entry in _attempts and created it again.
2019-03-20 13:23:16 +04:00
John Preston 8acd47bf2f Fix pre-history visibility rights check. 2019-03-20 13:22:58 +04:00
John Preston be53cb027c Possibly fix a crash in microphone testing. 2019-03-20 13:00:38 +04:00
John Preston 6ff8c1de05 Fix possible crash in layers destruction.
clearClosingLayers could've called itself from layer->setClosing.
2019-03-20 11:41:10 +04:00
John Preston 2ebbf062d0 Show webpage with embed_url as a video. 2019-03-19 13:21:13 +04:00
John Preston fd538bc6c8 Version 1.6.
- Play video files and listen to music
without waiting for them to fully download.
- Press CTRL+0 (CMD+0 on macOS) to jump to your Saved Messages.
2019-03-18 12:24:03 +04:00
John Preston c0959ceaeb Start video when moving to it in media viewer.
Fixes #5796.
2019-03-18 11:44:49 +04:00
John Preston 6c382c647c Fix caching of first slice in header. 2019-03-18 11:00:11 +04:00
John Preston 8f9bed0443 Fix document caption in media viewer.
Regression was introduced in 5cae57601a.

Fixes #5799, fixes #5802, fixes #5804.
2019-03-17 23:00:09 +04:00
John Preston 5bfd5e4495 Beta version 1.5.18.
- Bug fixes and other minor improvements.
2019-03-15 16:11:55 +04:00
John Preston d646de7184 Add button to download audio files. 2019-03-15 16:09:05 +04:00
John Preston bc2b0f8392 Add button to download video files.
Fixes #5781.
2019-03-15 14:15:04 +04:00
John Preston f2a7cf5c64 Improve shared videos design. 2019-03-15 12:09:48 +04:00
John Preston 0df628dc7a Fix notifications hiding on Linux.
Regression was introduced in 3372dfcd3e.

Only when platform-specific code can give us the global time of the
last user input event we rely on idle time for notifications hiding.

Fixes #5791.
2019-03-14 21:59:10 +04:00
John Preston a5d1fbff98 Fix removing photo in webpage preview. 2019-03-14 17:14:18 +04:00
John Preston 5cae57601a Allow video download from media viewer. 2019-03-14 16:03:02 +04:00
John Preston 2b7fb7a9a6 Pause music only when video playback starts. 2019-03-14 14:45:08 +04:00
John Preston feb238c5d9 Fix crash if asked to read more than 64MB at once. 2019-03-14 14:14:24 +04:00
John Preston 0d888eea85 Fix local cache time limit setting storing.
Fixes #5611.
2019-03-14 13:22:42 +04:00
John Preston bfb6ecbac7 Fail streaming on error in any stream. 2019-03-14 12:47:18 +04:00
John Preston 2152fe6a79 Beta version 1.5.17: Improve large file streaming.
Allow header for streaming up to 8 MB.
2019-03-13 20:56:04 +04:00
John Preston b113696fe6 Beta version 1.5.17.
- Bug fixes and other minor improvements.
2019-03-13 19:02:53 +04:00
John Preston b65a24df96 Allow streaming videos with unknown duration.
When you stream image/gif as a soundless video the total duration is
unknown, so we accumulate packet->pts + packet->duration as duration.
2019-03-13 18:58:50 +04:00
John Preston c655bf852f Fix crash in video player seek. 2019-03-13 16:28:07 +04:00
John Preston be495c17bc Fix seek to video end. 2019-03-13 16:21:07 +04:00
John Preston 9785ff4be6 Add more checks in streaming. 2019-03-13 15:11:54 +04:00
John Preston 5ec37e9112 Use separate click handler for OpenWith. 2019-03-13 13:35:47 +04:00
John Preston f9f84fd407 Fix idle time checking in MainWidget.
Regression was introduced in 78d00bcf22.

Fixes #5779, fixes #5780.
2019-03-13 11:21:56 +04:00
John Preston ed93669693 Beta version 1.5.16: Update libtgvoip. 2019-03-12 19:04:22 +04:00
John Preston e79ddf2459 Beta version 1.5.16: Fix audio stucking. 2019-03-12 18:57:48 +04:00
John Preston 5efe47cfb6 Beta version 1.5.16: Remove streaming logs. 2019-03-12 18:56:35 +04:00
John Preston b8045cbcc7 Beta version 1.5.16.
- Play video files and listen to received music
without waiting for them to download.
- Press CTRL+0 (CMD+0 on macOS) to jump to your Saved Messages.
2019-03-12 17:05:11 +04:00
John Preston aa1090a585 Fix text disappearing in support mode. 2019-03-12 16:54:15 +04:00
John Preston 0a5589f869 Remove deleted chats with users from list. 2019-03-12 16:08:41 +04:00
John Preston 383b29dbd8 Fix possible crash in calls.
Fixes #5732.
2019-03-12 15:26:29 +04:00
John Preston 13a9b967e9 Use user phrases for support accounts. 2019-03-12 14:38:59 +04:00
John Preston b798654ca7 Set focus to intro widget.
Fixes #5705.
2019-03-12 14:38:59 +04:00
John Preston a5e6890b77 Fix icon pixmap sizes on Retina with scaling. 2019-03-12 14:27:22 +04:00
John Preston 2a3a38531b Fix photo inline result sending.
Fixes #5594.
2019-03-12 13:49:16 +04:00
John Preston 4ebf6ebb6f Use the same poll option values as others. 2019-03-12 13:15:08 +04:00
23rd 6fe736c9fc Added Shortcut to jump to the Saved Messages. 2019-03-12 13:03:23 +04:00
John Preston ef682e7023 Fix photos in overview with disabled autodownload.
Fixes #5599, fixes #5747.
2019-03-12 12:55:26 +04:00
John Preston 5c3f667fc3 Fix background reset on language change. 2019-03-12 12:55:26 +04:00
John Preston a95a055acd After update try relaunching for 1 second on macOS. 2019-03-12 09:35:53 +04:00
John Preston 846499a4fb Fix volume saving to settings. 2019-03-12 09:09:53 +04:00
John Preston 6afb3f70bb Closed alpha version 1.5.15.6. 2019-03-11 21:03:26 +04:00
John Preston c063d94aa5 Remove DocumentData::actionOnLoad. Fix GIF open. 2019-03-11 19:07:35 +04:00
John Preston 261720c941 Fix radial animations on macOS.
QOpenGLWidget doesn't draw antialiased ellipses and arcs,
so we use a software rasterizer and then draw the resulting image.
2019-03-11 13:51:15 +04:00
John Preston 7b3c452316 Change direction of infinite radial animation. 2019-03-11 13:19:38 +04:00