23rd
690fbe83fd
Unified and moved to single place generating of song name from SongData.
2021-05-31 08:54:22 +04:00
Ilya Fedin
508762cd2c
Use static QFileInfo::exists
2021-03-15 11:21:05 +03:00
Ilya Fedin
c0c10689a1
Get rid of deprecated ranges::view usage
2021-03-13 19:14:58 +03:00
Ilya Fedin
8042a83fd2
Move glib usage to glibmm
2021-03-04 12:07:54 +04:00
John Preston
b5a2b0fb98
Detect file mime from content as well on Linux.
2021-02-22 23:42:43 +04:00
John Preston
5feb381cb2
Allow showing images from cache in media viewer.
...
Fixes #10237 .
2021-02-01 15:44:24 +04:00
23rd
dd01ece14a
Replaced snap util function with std::clamp.
2021-01-24 10:41:10 +03:00
23rd
ad761011d6
Added ability to fetch song cover from external resource.
2021-01-22 16:53:59 +04:00
23rd
8fffe7d128
Added ability to show song cover in HistoryView and Overview::Layout.
2021-01-11 22:46:45 +03:00
John Preston
02d5af7d71
Detect animated stickers by mime type.
2020-12-01 09:45:24 +03:00
John Preston
012ebdd15e
Fix grouping of music files / just files.
2020-10-30 18:32:19 +03:00
John Preston
8b96f4c214
Move Media::Clip::Reader and FileLocation to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
05eb549a3d
Move App::roundRect to Ui::FillRoundRect.
2020-10-30 18:32:18 +03:00
John Preston
37fb94cbfb
Load and show image previews in pinned bar.
2020-10-30 18:32:18 +03:00
23rd
665e322fce
Added ability to see attached stickers on documents.
...
Fixed #8927 .
2020-10-30 13:18:40 +03:00
Ilya Fedin
b0ce88395f
Don't stream videos when external player is used
...
External player feature doesn't work otherwise
2020-10-26 14:58:39 +03:00
John Preston
9697567b8d
Add some more open file warnings.
2020-10-23 13:10:43 +03:00
John Preston
9c213bf1c0
Warn when launching .sh on Windows.
...
Fixes #8753 .
2020-10-07 14:41:21 +03:00
John Preston
437c9320cd
Implement progressive jpeg loading and sending.
2020-09-29 19:03:18 +03:00
John Preston
9463bbd266
Fix animated stickers with wrong dimensions.
2020-07-17 08:13:45 +04:00
John Preston
8aafe6ba0e
Show only box(512,512) .webp as stickers.
2020-07-15 22:31:42 +04:00
John Preston
515d8e78da
Show 'Open With' for files without extension.
2020-07-14 19:03:36 +04:00
John Preston
76596f42c7
Open too large GIFs in fullscreen viewer.
2020-07-02 13:43:39 +04:00
Magnus Groß
f697abe9a1
Do not open non-images as image
...
QImageReader might report PDF as a viable image type, if Qt is
dynamically linked and QtWebEngine is installed.
Fixed by additionally checking the mime type.
Fixes #8102
2020-06-29 16:22:15 +04:00
John Preston
4d65df6ca2
Remove legacy temp download folder.
2020-06-23 21:53:44 +04:00
23rd
e318a7d65f
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
2020-06-23 21:53:43 +04:00
John Preston
83538675ce
Move a lot of settings to Core::Settings.
2020-06-23 21:53:42 +04:00
John Preston
4d6cc58f0d
Move session settings to main_session_settings.
2020-06-23 21:53:42 +04:00
John Preston
f450f81215
Remove non-UI calls to App::main.
2020-06-23 21:53:40 +04:00
John Preston
ad4afe9293
Move session data localstorage -> storage_account.
2020-06-23 21:53:39 +04:00
John Preston
03dec15e8e
Pass Main::Session to click handler creators.
2020-06-23 21:53:38 +04:00
John Preston
fc174f742a
Move stickers code to Data::Stickers class.
2020-06-23 21:53:38 +04:00
John Preston
4b354b0928
Use Main::Session in download/upload.
2020-06-23 21:53:38 +04:00
John Preston
3878a1b212
Remove some more Auth() calls.
2020-06-23 21:53:38 +04:00
Ilya Fedin
dbad9fa73a
Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku
2020-06-17 20:33:23 +04:00
John Preston
571a15bf92
Fix sending image from clipboard as file.
2020-06-16 19:31:50 +04:00
John Preston
6bc7fa9ef4
Fix crash in saving of a document.
2020-06-04 12:22:37 +04:00
John Preston
36fbdfb380
Simplify Image, remove ImageSource.
2020-06-01 18:09:33 +04:00
John Preston
6513422e40
Remove legacy image-related code.
2020-06-01 18:09:33 +04:00
John Preston
803593cd8d
Change Stickers::Set from value to object type.
2020-06-01 18:09:33 +04:00
John Preston
50e0c3ee4d
Fix preloading in media viewer.
2020-06-01 18:09:33 +04:00
John Preston
dbb46ce9b0
Let [Photo|Document]Media outlive message view.
2020-06-01 18:09:32 +04:00
John Preston
64cf0e1a44
Fix caching of sent photos and document previews.
2020-06-01 18:09:32 +04:00
John Preston
e27d2bc2d5
Move photo data to Data::PhotoMedia.
2020-06-01 18:09:32 +04:00
John Preston
9ce59730ff
Collect local DocumentMedia data.
2020-06-01 18:09:32 +04:00
John Preston
3f26fc9f55
Allow WebDocument video thumbnails.
2020-06-01 18:09:32 +04:00
John Preston
f4ed2c26ba
Save video thumbnail location to local storage.
2020-06-01 18:09:32 +04:00
John Preston
c61f3a0aba
Fix sending of thumbnailed inline result GIFs.
2020-06-01 18:09:31 +04:00
John Preston
3c9ca2eb94
Load and show video thumbnails in the panel.
2020-06-01 18:09:31 +04:00
John Preston
58f82620e0
Simplify media overview layouts.
2020-06-01 18:09:31 +04:00
John Preston
d64014c995
Clear DocumentMedia in ReplyPreview.
2020-06-01 18:09:31 +04:00
John Preston
fb322b5fc5
Use empty Storage::Cache::Key as nullopt.
2020-06-01 18:09:31 +04:00
John Preston
cbb9657044
Fix download task finalizing.
2020-06-01 18:09:30 +04:00
John Preston
3797753d16
Support different location types for thumbnails.
2020-06-01 18:09:30 +04:00
John Preston
956c3af0ae
Start DocumentData::thumbnail move to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
ff6365ec72
Fix crash in still downloaded ~DocumentData.
2020-06-01 18:09:30 +04:00
John Preston
1e9c79ca85
Move automaticLoad() to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
40f12a2584
Keep document byte data only in DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
97bab388ea
Use rpl for file download progress notifications.
2020-06-01 18:09:30 +04:00
John Preston
bf616036b3
Check loaded status through DocumentMedia if possible.
2020-06-01 18:09:30 +04:00
John Preston
669b79588e
Remove FilePathResolve::SaveFromData.
2020-06-01 18:09:30 +04:00
John Preston
33f4946242
Start using document bytes from DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
888e42df34
Remove data_document_good_thumbnail module.
2020-06-01 18:09:30 +04:00
John Preston
70c79eb6bd
Move sticker image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
bdd3c51ab8
Move inline thumbnail image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
7db53599e8
Use Data::DocumentMedia to store good thumbnails.
2020-06-01 18:09:29 +04:00
John Preston
6adcf660f1
Guard click handlers that capture session data.
...
Click handlers invocation is done by posting on_main,
so in rare cases the session may be already destroyed.
2020-05-04 17:38:49 +04:00
John Preston
ed715fb810
Update API scheme to layer 111.
2020-03-27 20:36:01 +04:00
Av
fdd841e5c4
Increase media cache memory size to solve flicker issue
...
When displaying large numbers of GIFs, Telegram's Media Cache runs out of size and unloads items that are still being displayed.
2020-03-10 11:47:26 +04:00
John Preston
db322cc19a
Move requestDialogEntry to Histories.
2020-02-21 18:48:30 +04:00
John Preston
66204bae95
Update API scheme on layer 107.
2019-12-29 14:41:10 +03:00
John Preston
d47c138f23
Save streaming player between message edits.
2019-12-28 17:56:06 +03:00
John Preston
418b0e7db0
Always try to stream video messages.
2019-12-13 17:51:14 +03:00
John Preston
38199276f1
Fix round video messages streaming.
2019-12-12 16:26:53 +03:00
John Preston
5b787a6759
Add more extensions as possibly-executable.
2019-12-08 17:54:21 +03:00
John Preston
ee94e78533
All mtproto downloads using DownloadMtprotoTask.
2019-12-05 11:32:33 +03:00
John Preston
4611727ab9
Rewrite webFileLoader without Storage::DownloadManager.
2019-12-04 15:15:58 +03:00
John Preston
27a83a7a09
Use base::FileNameFromUserString.
2019-10-20 14:22:46 +04:00
John Preston
0c713a930a
Remove app.h / facades.h from precompiled header.
2019-10-01 23:59:46 +03:00
John Preston
ee5423762a
Generate previews for cloud theme links.
2019-09-09 14:56:05 +03:00
John Preston
9c86f0e0a5
Save themes, apply and close editor on save.
2019-09-06 19:31:07 +03:00
John Preston
4929de2bfb
Apply cloud themes.
2019-09-06 19:31:06 +03:00
John Preston
ac8f924909
Show tdesktop cloud themes in a box.
2019-09-06 19:31:06 +03:00
John Preston
abf49e1672
Update API scheme.
2019-08-09 11:50:49 +01: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
4d92d74de0
Add python extensions to the list of executables.
2019-07-24 08:02:20 +02:00
John Preston
567bf60644
Use getters in MTP classes.
2019-07-05 16:23:07 +02:00
John Preston
226ca6d117
Clear 'Cancelled' flag on download start.
...
Fixes #6123 .
2019-07-04 13:21:43 +02:00
John Preston
0a63eac4f6
Generate good thumbnail for animated stickers.
2019-07-04 10:20:36 +02:00
John Preston
35bc2cc2a5
Prepare lottie animations caching.
2019-07-01 17:57:34 +02:00
John Preston
8f3f898c47
Show animated stickers in StickerSetBox.
2019-07-01 17:57:32 +02:00
John Preston
87fc066e67
Use tr:: instead of lang().
2019-06-21 11:06:51 +02:00
John Preston
a7c8feaecb
Use tr:: instead of langFactory and __rich.
2019-06-21 11:06:50 +02:00
John Preston
ca7c50fbcd
Remove pseudo-HTML from langpacks and Ui::Text::String.
2019-06-21 11:06:46 +02:00
John Preston
a547f80ae9
Rename Window::Controller to Window::SessionController.
2019-06-06 13:21:40 +03:00
John Preston
04e3b250e7
Keep track of fully cached media files.
2019-06-04 14:30:44 +03:00
John Preston
274fed3cb0
Move several fields to bit flags in DocumentData.
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