Commit Graph

614 Commits

Author SHA1 Message Date
John Preston
0df699a054 Allow drag-n-drop-ing files up to 4 GB.
Fixes #24657.
2022-06-22 18:56:01 +04:00
John Preston
03e60ed329 Fix uploading files > 500 Mb. 2022-06-18 00:00:56 +04:00
John Preston
0a81246502 Show correct error box when sending file > 4GB. 2022-06-16 13:48:11 +04:00
John Preston
7c2223e540 Write serialized peer has_video correctly, versioned. 2022-06-14 19:20:02 +04:00
23rd
1d475ee727 Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00
23rd
3959918fc5 Provided size of big file to premium limit box. 2022-06-07 08:16:39 +03:00
23rd
35e4dd5968 Added initial support for increased premium count of accounts. 2022-06-01 11:59:14 +04:00
John Preston
201edb2e69 Play premium video avatars in chats list. 2022-05-19 17:27:03 +04:00
John Preston
88393eb77b Fixed streaming for big files. 2022-05-19 17:27:03 +04:00
John Preston
308f106dc1 Support large files in Downloads. 2022-05-19 17:27:03 +04:00
John Preston
87662de2a6 Support web_app_open_tg_link / web_app_open_invoice. 2022-05-19 17:27:03 +04:00
John Preston
26c99cea7c Show all premium limits boxes. 2022-05-19 17:27:03 +04:00
John Preston
6dedf7c63e Update API scheme to layer 143. 2022-05-19 17:27:02 +04:00
John Preston
935fb79c52 Play premium sticker effects. 2022-05-19 17:27:01 +04:00
John Preston
5874ae7c51 Update API scheme on layer 142: Premium stickers. 2022-05-19 17:27:01 +04:00
John Preston
39a02e649d Fix crash on invalid data in local cache. 2022-05-03 14:52:08 +04:00
John Preston
d9f6a5206e Update API scheme on layer 140. 2022-04-06 16:29:06 +04:00
John Preston
646682b6a0 Add confirmation on first webview open. 2022-04-06 11:53:44 +04:00
John Preston
6805259f74 Don't recompress some JPEGs when sending as photos.
If JPEG is saved in progressive mode and has bpp <= 4
and max(width, height) <= 1280 then we send original bytes.
2022-03-09 17:37:51 +04:00
John Preston
2917a53b75 Beta version 3.5.3: Fix build with GCC. 2022-02-28 23:25:55 +03:00
23rd
5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
John Preston
57f17b7afe Save and restore downloads between launches. 2022-02-27 20:26:52 +03:00
John Preston
1a3a0fb124 Fix caching of webm stickers in local storage. 2022-01-28 19:10:07 +03:00
John Preston
8b7d2c880e Support rendering Webm videos with alpha. 2022-01-28 19:10:07 +03:00
John Preston
6a3ad52aef Add upload cancel confirmation on Quit and Log Out. 2022-01-26 13:15:28 +03:00
23rd
0143d22a21 Split qt_adapters to separated files. 2022-01-26 10:33:28 +03:00
John Preston
3ff17a8789 Refactor image transformation interfaces. 2022-01-21 15:33:44 +03:00
23rd
f8be5731a5 Moved out extracting of attached stickers from Scene to FileLoadTask. 2022-01-12 11:54:25 +03:00
John Preston
773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston
53c15ed2ac Make SendingAlbum::Item::Item non-inline. 2021-11-18 11:04:18 +04:00
John Preston
3b2f6b893d Hide MTPInputFile in Api::RemoteFileInfo. 2021-11-18 11:04:06 +04:00
John Preston
c534f3f22e Some internal HistoryItem refactoring.
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
John Preston
9e05e44a14 Inform about join request being sent. 2021-10-29 18:31:06 +04:00
Ilya Fedin
847c01d605 Add Qt 6 support
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd
159beb138a Moved api peer photo processing to separated file.
Removed MainWidget::deletePhotoLayer.
2021-10-20 22:56:19 +03:00
23rd
80461bd9fe Moved ConfirmBox to Ui namespace. 2021-10-19 06:34:27 +03:00
23rd
6148edbc7d Moved ConfirmBox to td_ui. 2021-10-19 06:34:27 +03:00
John Preston
84f561b251 Don't use MTP* in the image editor. 2021-10-04 23:47:33 +04:00
John Preston
1e660fc2a2 Allocate 64 bits for message ids. 2021-09-30 13:49:37 +04:00
John Preston
a2db9de4d7 Remove debug code. 2021-09-28 11:30:18 +04:00
John Preston
19ce1edc16 Use base::SafeRound instead of std::round.
Previous assertion violations because of NaN from std::round were
in video streaming, see commits 27d58ba07b, 8f5830d520.

Now the crashes happened in the ConvertScale() call from a background
thread when preparing an image from clipboard for sending to a chat.
2021-09-27 12:13:57 +04:00
John Preston
da1945d0ca Add some more information for an assertion violation. 2021-09-25 22:49:51 +04:00
John Preston
132f127f3f Add some assertions to debug a crash. 2021-09-24 08:44:22 +04:00
John Preston
8069fdd873 Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:42:22 +03:00
John Preston
6a53fc7edc Beta version 3.0.4: Add some theme loading logging. 2021-09-13 20:09:55 +03:00
John Preston
e99f650eaa Change default autoupdate URL. 2021-09-13 16:33:31 +03:00
John Preston
e4e5c4a1d2 Support 64 bit peer-bare-ids in export settings. 2021-09-07 23:41:07 +03:00
John Preston
a6c98f4bb4 Update API scheme to layer 133. 2021-09-07 23:41:07 +03:00
23rd
ce7a3c354c Simplified conditions for hiding hint for photo editor. 2021-09-07 23:41:07 +03:00
John Preston
23e9e7b9f0 Remove for_const macro. 2021-09-06 13:13:26 +03:00