Commit Graph

4603 Commits

Author SHA1 Message Date
John Preston 2e824ace00 Fix video messages inline playback. 2019-03-11 12:08:11 +04:00
John Preston dafa286b18 Show option to download on streaming error. 2019-03-11 12:08:11 +04:00
John Preston 003d01206f Allow .opus playback. 2019-03-11 12:08:10 +04:00
John Preston f0963a332a Fix crash on failed streaming. 2019-03-11 12:08:10 +04:00
John Preston 91bdb66f0d Fix call icon position for the Info layer. 2019-03-11 12:08:10 +04:00
John Preston ffb48c42b0 Closed alpha version 1.5.15.1. 2019-03-11 12:08:10 +04:00
John Preston 8171828c2a Fix build on GCC. 2019-03-11 12:08:09 +04:00
John Preston a8aa66d191 Check frame format before sws_getCachedContext. 2019-03-11 12:08:09 +04:00
John Preston e631d98230 Implement media cache management. 2019-03-11 12:08:09 +04:00
John Preston 1940c67a09 Disable music / video autodownload. 2019-03-11 12:08:09 +04:00
John Preston c574119718 Implement file reference update in streaming. 2019-03-11 12:08:08 +04:00
John Preston 648cd44ddd Display correct video / music state. 2019-03-11 12:08:08 +04:00
John Preston fde8dd9607 Play streaming audio in player. 2019-03-11 12:08:08 +04:00
John Preston f1e0cd6c1d Play streaming video in mediaview. 2019-03-11 11:52:11 +04:00
John Preston 44df10d6cb Improve working with cache in streaming. 2019-03-11 11:49:54 +04:00
John Preston b6a757842a Pause loading if loaded for 1 minute. 2019-03-11 11:49:54 +04:00
John Preston 4636c74586 Remove from memory old file slices. 2019-03-11 11:49:54 +04:00
John Preston 2208621050 First version of caching in media streaming. 2019-03-11 11:49:54 +04:00
John Preston f133dd396c Return pair<iterator,bool> from flat_set::emplace. 2019-03-11 11:49:54 +04:00
John Preston ccd04b98b9 Fix sync video to audio. 2019-03-11 11:49:54 +04:00
John Preston d37b65e624 If stuck wait for three seconds of packets. 2019-03-11 11:49:54 +04:00
John Preston 3e9b811875 Implement precise seek in streaming. 2019-03-11 11:49:54 +04:00
John Preston 44c562d8ba Fix streaming seek, display progress. 2019-03-11 11:49:53 +04:00
John Preston 93c548c013 Support streaming speed changing. 2019-03-11 11:49:53 +04:00
John Preston a7d9281768 Implement pause / resume in streaming. 2019-03-11 11:49:53 +04:00
John Preston 3b369fc98e Buffer audio when waiting data in streaming. 2019-03-11 11:49:53 +04:00
John Preston e5cd7e6d40 Fix streaming from the middle of the file. 2019-03-11 11:49:53 +04:00
John Preston 99d05ba967 Sync video stream to audio stream. 2019-03-11 11:49:53 +04:00
John Preston ec9512899e Support streaming playback speed 0.5 - 2. 2019-03-11 11:49:22 +04:00
John Preston 26ea6c4e63 Provide receivedTill for streamed tracks. 2019-03-11 11:49:22 +04:00
John Preston 8e44a7f5c4 Basic code for video streaming + testing on video. 2019-03-11 11:49:22 +04:00
John Preston a093cb6274 Move some logic to Media::Streaming::Player. 2019-03-11 11:49:21 +04:00
John Preston 64f2f330f6 Render first frame when starting streaming. 2019-03-11 11:49:21 +04:00
John Preston 473e30e594 Basic code for media streaming + testing on music. 2019-03-11 11:49:21 +04:00
23rd dc95756ec9 Fixed infrequent separation of grouped notifications. 2019-03-11 00:00:02 +04:00
23rd 2a935868a8 Added grouping of album files into a single notification.
- Added display of "Album" in inDialogsText().
2019-03-11 00:00:02 +04:00
23rd f48d8538c0 Added ability to see attached stickers on photos. 2019-03-10 22:10:36 +04:00
23rd 3372dfcd3e Refactored checking of last input while notifications are displayed.
- Removed condition for Windows platform only.
 - Added smooth hiding of notifications in case video is watched or voice message is recorded.
 - psUserActionDone() was completely replaced with Core::App().updateNonIdle().
2019-03-10 22:02:58 +04:00
23rd 78d00bcf22 Refactored counting idle time.
- psIdleTime() was replaced with Platform::LastUserInputTime().
 - _lastTimeVideoPlayedAt was moved to Application as _lastNonIdleTime.
 - Call of updateNonIdle() was added while voice is recording.
 - Fixed #5695.
 - Thanks Preston. =)
2019-03-10 22:02:58 +04:00
23rd 9dc9e019f6 Added Search Shortcut in Shared Media.
- Works for Documents, Audio files and Shared links.
2019-03-10 10:58:05 +04:00
23rd bfc9e43eb4 Added a handler for "MESSAGE_EMPTY" error to delete a local message.
- Added a determination of the zero-width-space as the space.
 - Fixes #3145.
2019-03-10 10:26:40 +04:00
John Preston e174025a92
Fix travis build. 2019-03-09 15:27:36 +04:00
23rd 89f4408029 Added forwarded info in tooltip of sticker. 2019-03-09 15:24:35 +04:00
23rd d7dc277003 Added author of channel post in tooltip.
- Added "const" to vars within HistoryMessageSigned::refresh().
2019-03-09 15:01:08 +04:00
23rd 32bc723745 Added scroll animation in dialogs list when it scrolls to top. 2019-03-09 13:56:33 +04:00
23rd c2ad765424 Fixed extra space in a name of the post author after forwarding message. 2019-03-09 13:41:39 +04:00
23rd e880c14d61 Fixed crash in window resizing when layer is opened.
Regression was introduced in 26f1ade5ba.
2019-03-05 13:38:58 +04:00
23rd e70465c633 Removed unnecessary calling of saveDraftToCloud() method when quit. 2019-02-20 11:46:37 +04:00
23rd 4ed1835d32 Fixed Ctrl + F shortcut for full screen toggle in media view. 2019-02-20 11:43:50 +04:00
23rd 19bbccd1a7 Improved "Create link" box title display. 2019-02-20 11:42:10 +04:00
23rd 9d8b80cbce Fixed Travis build.
Regression was introduced in 771a51224e.
2019-02-20 11:41:13 +04:00
John Preston fe618bd652 Use crl::time/now instead of TimeMs/getms. 2019-02-19 11:06:33 +04:00
John Preston d208236994 Accept binary_guard in crl::guard(). 2019-02-17 15:56:07 +04:00
John Preston 4d987f7278 Fix index_based_iterator for const containers. 2019-02-17 15:56:07 +04:00
23rd 193e454fd4 Fixed sending polls as reply to other messages.
Fixes #5550.
2019-02-17 15:55:44 +04:00
John Preston bdfb9b4143 Ignore actions from other chats in HistoryWidget.
This should fix an issue that was noticed in #5701.
2019-02-17 15:09:02 +04:00
John Preston c9716f3c72 Make crl::object_on_queue usages consistent. 2019-02-17 15:09:01 +04:00
John Preston 7c1704e68b Fix crash in EditCaptionBox. 2019-02-17 13:51:53 +04:00
John Preston 771a51224e Support errors in rpl::event_stream. 2019-02-17 10:55:29 +04:00
John Preston cf275b152a Fix crash in layers closing.
Sometimes AbstractBox::setClosing invoked Ui::hideLayers that
destroyed LayerStackWidget and all its children, including the
closing AbstractBox. After that a unique_ptr stored on stack
and owning that box was destroyed and it lead to a crash.

Now LayerStackWidget always owns several closing boxes.
2019-02-17 10:55:28 +04:00
John Preston 98cb85df66 Polymorphic classes without virtual dtor warning. 2019-02-15 15:55:34 +04:00
John Preston 032694ad9e Move files to media/audio and media/clip. 2019-02-13 15:41:33 +03:00
John Preston 5437215677 Use premultiplied format for GIF frames. 2019-02-13 15:19:05 +03:00
John Preston 5ec80238a0 Fix permissions dependencies. 2019-02-13 15:19:05 +03:00
John Preston ae6c152988 Version 1.5.15: Fix macOS media viewer overlay.
Regression was introduced in c1a0dad2b7.
2019-02-12 19:55:35 +03:00
John Preston 7d15cca1ee Version 1.5.15.
- Crash fix.
2019-02-12 19:02:08 +03:00
John Preston 83c5a67af5 Fix another crash in last message checking.
Regression was introduced in 83bc6fb39c.
2019-02-12 19:01:30 +03:00
John Preston c9ad2cd1aa Version 1.5.14.
- Crash fix.
2019-02-12 16:56:23 +03:00
John Preston fe1f198d99 Fix crash in last message checking.
Fixes #5683.
2019-02-12 16:53:46 +03:00
John Preston 818662c2e6 Version 1.5.13: Don't automatically load executable files. 2019-02-12 14:28:33 +03:00
John Preston 05d0d2a6d6 Version 1.5.13.
- Bug fixes and other minor improvements.
2019-02-12 14:03:34 +03:00
John Preston c1a0dad2b7 Use QOpenGLWidget for macOS media viewer overlay.
Also move mediaview to media/view/media_view_overlay_widget.
2019-02-12 14:00:47 +03:00
John Preston 4caf26d069 Fix build for Xcode. 2019-02-11 15:56:25 +03:00
John Preston 83bc6fb39c Fix changelog dialogs list appearance.
Fixes #5678, fixes #5674.
2019-02-11 15:52:36 +03:00
John Preston dbb7568b92 Fix changelogs blog link previews. 2019-02-11 15:52:36 +03:00
John Preston 45fda44924 Fix crash on bad sticker.
DocumentData::getStickerLarge and DocumentData::loaded go to a loop.
2019-02-11 15:52:36 +03:00
John Preston 26f1ade5ba Optimize connecting widget. 2019-02-10 21:35:44 +03:00
John Preston 9dd93a77a0 Always keep inline thumbnail images loaded. 2019-02-10 11:19:27 +03:00
John Preston 331d1baad6 Fix videos without thumbnails in MediaView.
Fixes #5668.
2019-02-10 11:18:54 +03:00
John Preston d3159d86da Version 1.5.12: Fix manual loading GIFs to cache. 2019-02-09 18:00:48 +03:00
John Preston f9e1513491 Version 1.5.12.
- Apply blur effects to backgrounds.
- Use the backgrounds you set in Telegram Desktop
in all other Telegram apps.
2019-02-09 16:46:43 +03:00
John Preston b6e37b7730 Allow removing cloud wallpapers. 2019-02-09 16:36:07 +03:00
John Preston f9d56eb4c1 Send installWallPaper requests. 2019-02-08 19:47:02 +03:00
John Preston 95565c39ed Upload wallpapers to the cloud. 2019-02-08 19:20:08 +03:00
John Preston 890aacaeee Allow to blur wallpapers from file. 2019-02-08 16:55:02 +03:00
John Preston e2f0886950 Add option to blur chat background. 2019-02-07 19:36:30 +03:00
John Preston fe21b5a502 Support blurred backgrounds. 2019-02-06 17:38:37 +03:00
John Preston e7043c4d63 Show patterns with colors in galery. 2019-02-05 12:32:54 +03:00
John Preston aae2101131 Sort backgrounds in the gallery. 2019-02-04 21:37:40 +03:00
John Preston 64afed0fb2 Fix crash for videos without thumbnails. 2019-02-04 19:04:36 +03:00
John Preston 4d9464ed87 Remove flags checking for backgrounds.
Also limit image size to 2960px.

Fixes #5641.
2019-02-04 18:53:00 +03:00
John Preston b43191506a Fix preview of color-only backgrounds.
Regression was introduced in f506a5ea6c.
2019-02-04 18:03:31 +03:00
John Preston c47781c25a Version 1.5.11.
- Bug fixes and other minor improvements.
2019-02-01 15:51:46 +03:00
John Preston f0c4868b3e Ignore default banned rights for channel admins.
Fixes #5640.
2019-02-01 15:50:57 +03:00
John Preston 35e5c2329b Fix wall paper preview on Retina. 2019-02-01 15:41:43 +03:00
John Preston 74fc5524ab Fix dock and menu hiding on macOS.
Regression was introduced in 0681d10c51.
2019-02-01 15:41:43 +03:00
John Preston 2d4c99a6f7 Fix build for old OS X versions. 2019-02-01 13:23:35 +03:00
John Preston 69c73d0a2c Version 1.5.10.
- Bug fixes and other minor improvements.
2019-02-01 12:51:02 +03:00
John Preston 58510e0208 Improve chat list bot icon layout. 2019-02-01 12:50:30 +03:00
Jiachen YANG 0681d10c51 fixing mediaview fullscreen on X11 2019-02-01 12:38:32 +03:00
John Zimmermann add2356c8a Generalize Unity Integration to not depend on libunity 2019-02-01 12:34:55 +03:00
John Preston c66b2b2291 Fix setting offline on quit. 2019-02-01 12:23:37 +03:00
23rd 769923c6cc Fixed a keeping online status after application quit.
Fixes https://github.com/telegramdesktop/tdesktop/issues/5528.
2019-02-01 11:52:25 +03:00
23rd 27528d084f Added shortcuts to skip months in CalendarBox. 2019-02-01 11:49:14 +03:00
23rd 299aa69058 Added an icon for bots in the dialog list.
Fixes https://github.com/telegramdesktop/tdesktop/issues/1894 .
2019-02-01 11:48:45 +03:00
John Preston d1cc09f40e Destroy layers in reverse order. 2019-02-01 11:47:30 +03:00
John Preston a133b43eed Fix crash in dual background box show. 2019-02-01 11:32:34 +03:00
John Preston 9b57725b8c Fix bad function call in data export cancel. 2019-02-01 11:17:23 +03:00
John Preston 34b0f6f014 Fix crash in group migration. 2019-02-01 11:09:14 +03:00
John Preston f5cc93ec64 Decouple MTP::Instance from Core::App. 2019-02-01 10:48:31 +03:00
John Preston 4f3263d979 Fix crash in MediaView with thumbless GIFs. 2019-02-01 10:28:04 +03:00
John Preston b28e374e06 Fix Media::Audio::Instance destruction. 2019-02-01 10:09:55 +03:00
John Preston 918d58ef0a Better check unique results in support mode. 2019-02-01 09:53:15 +03:00
John Preston 0f4909621b Version 1.5.9.
- Bug fixes and other minor improvements.
2019-01-31 20:34:19 +03:00
John Preston 55d3d8adc3 Allow to delete users from exceptions. 2019-01-31 20:31:44 +03:00
John Preston d2d6a6daa4 Fix proxy sponsor messages search display. 2019-01-31 15:56:57 +03:00
John Preston a7f4ac2797 Search by hashtag inside groups. 2019-01-31 15:51:19 +03:00
John Preston 25b5027dc7 Only creator can restrict in old groups. 2019-01-31 15:20:15 +03:00
John Preston 93a967dc74 Add random_padding to dns requests. 2019-01-31 13:48:10 +03:00
John Preston 3cfc3dcecf Mark even more extensions as executables. 2019-01-30 17:59:55 +03:00
John Preston e09510ea9f Fix crash in update checker destruction. 2019-01-30 17:58:23 +03:00
John Preston 4c289fc8fb Fix add members button in channels. 2019-01-30 13:49:36 +03:00
John Preston 58cf0fa2b1 Display date in background preview. 2019-01-29 20:03:51 +03:00
John Preston 5ca12a73c3 Use new HistoryWallPaper media type for wallpaper. 2019-01-29 19:26:19 +03:00
John Preston fd8e9dad92 Fix pattern wallpapers with themes. 2019-01-29 14:52:33 +03:00
John Preston df0fe0a460 Closed alpha version 1.5.8.2. 2019-01-29 14:52:33 +03:00
John Preston 646d15b257 Add LSFileQuarantineEnabled to the .plist 2019-01-29 14:52:33 +03:00
John Preston 2eb6848eb8 Fix background preview on retina screens. 2019-01-29 14:52:33 +03:00
John Preston 6a2a13d346 Closed alpha version 1.5.8.1. 2019-01-29 14:52:33 +03:00
John Preston b6edf4561d Add support for pattern wallpapers. 2019-01-29 14:52:33 +03:00
John Preston c2744700c0 Mark more extensions as executables. 2019-01-29 14:52:33 +03:00
John Preston f506a5ea6c Save wallpaper settings locally. 2019-01-29 14:52:33 +03:00
John Preston 2f702148e3 Fix manage channel actions visibility.
Fixes #5601.
2019-01-29 14:52:33 +03:00
John Preston e10c928207 Update API scheme to layer 95. 2019-01-29 14:52:33 +03:00
John Preston a1baa23a52 Use both thumbnails in photos and documents.
Fixes #5602.
2019-01-28 13:10:45 +03:00
John Preston a70e72f75d Application->Sandbox, Messenger->Application. 2019-01-23 12:51:58 +04:00
John Preston 4111da1dd0 Move some calls from App namespace. 2019-01-22 17:10:01 +04:00
John Preston e7804d014d Share background from preview. 2019-01-22 17:10:00 +04:00
John Preston bf87de3706 Fix removing chats from dialogs. 2019-01-22 17:05:06 +04:00
John Preston ebc2043055 Improve empty group display. 2019-01-22 11:50:21 +04:00
John Preston 69b1f6c4e1 Version 1.5.8.
- Global permissions for groups. Restrict all members in any group
from posting certain types of content.
- Unified group settings. Make groups public,
set admins with granular permissions and toggle persistent history
in just a few clicks in any group.
- Choose the emoji set you would like to use in Chat Settings.
- Choose input and output devices for Telegram Calls
in Settings > Advanced > Call Settings.
- Support for automatically downloading files and music.
2019-01-21 21:28:45 +04:00
John Preston 2708777167 Closed alpha version 1.5.7.2. 2019-01-21 18:06:20 +04:00
John Preston 6e0d62bb65 Re-apply document thumb only for stickers. 2019-01-21 17:43:24 +04:00
John Preston 6d706fd222 Improve unacessible permissions design. 2019-01-21 17:43:24 +04:00
John Preston 6066265717 Fix emoji suggestions in monospace. 2019-01-21 11:02:20 +04:00
John Preston 805e4d01e7 Allow re-downloading failed media. 2019-01-21 10:49:44 +04:00
John Preston e209299af4 Fix invite link block visibility. 2019-01-21 10:40:25 +04:00
John Preston b3f0a3c9f5 Make audio device selection box wider. 2019-01-21 10:37:31 +04:00
John Preston 1da8841ac7 fixup use Text 2019-01-21 10:37:20 +04:00
John Preston 7df5df6351 Improve phrases for removed users. 2019-01-21 10:26:19 +04:00
John Preston bf85b0c109 Closed alpha version 1.5.7.1. 2019-01-18 16:41:08 +04:00
John Preston 314e30272b Replace SingleTimer with base::Timer. 2019-01-18 16:41:08 +04:00
John Preston 61b9a32504 Add 'Contact joined' notifications setting. 2019-01-18 16:41:08 +04:00
John Preston 01b7d4ffba Use Text to display empty group state. 2019-01-18 16:41:07 +04:00
John Preston 8643972f8c Send thumbs only for big files. 2019-01-18 16:41:07 +04:00
John Preston 1894b8fcf7 Handle t.me/bg links with wallpapers / colors. 2019-01-18 16:41:07 +04:00
John Preston e59a68cd68 Refresh wallpaper file references. 2019-01-17 12:21:31 +04:00
John Preston 466c6da5e3 Save wallpaper information. 2019-01-17 12:21:31 +04:00
John Preston b8cb792831 Read background image async. 2019-01-17 12:21:31 +04:00
John Preston 0f9c2a62fe Load fullres images of new wallpapers. 2019-01-17 12:21:31 +04:00
John Preston 04350af96f Use one place for saving restrictions. 2019-01-17 12:21:31 +04:00
John Preston 287b3509ab Optimize getPeerDialog requests. 2019-01-17 12:21:31 +04:00
John Preston 2a5bcd3eec Support empty group placeholder for creators. 2019-01-17 12:21:31 +04:00
John Preston 2a0b9a44dd Remove supergroup migrate messages. 2019-01-17 12:21:31 +04:00
John Preston c552db04d7 Use 'exception' and 'remove user' phrases. 2019-01-17 12:21:30 +04:00
John Preston 22f1ffc72b Use different phrases for default restrictions. 2019-01-17 12:21:30 +04:00
John Preston 4f33be20d4 Add user to group on appointing of admin. 2019-01-17 12:21:30 +04:00
John Preston 9728ddeaf9 Handle migration to supergroups in boxes. 2019-01-17 12:21:30 +04:00
John Preston 3c44bdb6b7 Support auto-migrate to supergroups. 2019-01-17 12:21:30 +04:00
John Preston b236844c94 Fix crash in admin log events. 2019-01-17 12:21:30 +04:00
John Preston 67d12fa6d2 Improve update handling for legacy chats. 2019-01-17 12:21:30 +04:00
John Preston 215856adc3 Improve AddSpecial box for legacy groups. 2019-01-17 12:21:30 +04:00
John Preston 07e010dfb5 Save admins in legacy groups. 2019-01-17 12:21:30 +04:00
John Preston dba9ca2084 Replace TLHelp helpers with .match() 2019-01-17 12:21:30 +04:00
John Preston 9a60e744d3 Unify permissions checks in participants boxes. 2019-01-17 12:21:30 +04:00
John Preston e1a2ab0d7e Log only source base name in assertions. 2019-01-17 12:21:30 +04:00
John Preston a605c110a8 Support legacy groups in participant boxes. 2019-01-17 12:21:29 +04:00
John Preston 18c6be0d3b Unify legacy and megagroups information edit. 2019-01-17 12:21:29 +04:00
John Preston ff728e2fc1 Add default permissions changes to admin log. 2019-01-17 12:21:29 +04:00
John Preston eff90395b6 Add EditPeerPermissionsBox. 2019-01-17 12:21:29 +04:00
John Preston f4d52b82b4 Allow reusing permissions edit controls. 2019-01-17 12:21:29 +04:00
John Preston 61419b57c8 Prepare legacy group restrictions checking. 2019-01-17 12:21:29 +04:00
John Preston 441989a8e1 Remove EditChannelBox. 2019-01-17 12:21:29 +04:00
John Preston c5a41e1f55 Divide data/data_peer and remove from PCH. 2019-01-17 12:21:29 +04:00
John Preston 0ce4d66601 Rename restrictionReason to unavailableReason. 2019-01-17 12:21:28 +04:00
John Preston d2d6b319b6 Update API scheme to layer 93. Broken. 2019-01-17 12:21:28 +04:00
John Preston 47edb71a68 Update API scheme to layer 92. 2019-01-17 12:21:28 +04:00
John Preston 1f8626b383 Move App::histories to Data::Session. 2019-01-17 12:21:28 +04:00
John Preston 0d6a36e187 Fix volume widget position.
Fixes #5467.
2019-01-17 12:20:50 +04:00
John Preston 548a0c8517 Fix MTP logging. 2019-01-17 12:20:50 +04:00
John Preston 09d85e25c1 Fix possible crash in SendFilesBox. 2019-01-17 12:20:50 +04:00
John Preston 51b5b14dea Beta version 1.5.7.
- Choose the emoji set you would like to use
in Settings > Chat Settings.
- Choose input and output devices for Telegram Calls
in Settings > Adavanced > Call Settings.
2019-01-11 17:31:36 +04:00
John Preston 0d290a2c28 Fix emoji icon in theme preview.
Fixes #5561.
2019-01-11 17:30:57 +04:00
John Preston c1b3d589c7 Fix elision in document extension in MediaView.
Fixes #5555.
2019-01-11 17:30:57 +04:00
John Preston 65430d92ea Refactor calls settings panel. 2019-01-11 17:30:57 +04:00
John Preston 8711830f66 Move calls settings to Settings > Advanced.
Also add calls settings button to the calls list box.
2019-01-11 17:30:57 +04:00
John Preston c4d919d46b Improve emoji quality while creating cache. 2019-01-11 17:30:57 +04:00
John Preston 3e7a688811 Fix tray icon counter on Linux.
Fixes #5525.
2019-01-11 17:30:57 +04:00
John Preston 2773a675d0 Improve sticker set download phrase. 2019-01-11 17:30:57 +04:00
John Preston 9bbdccc111 Postpone sticker send from StickerSetBox.
Fixes #5539.
2019-01-11 17:30:57 +04:00