Commit graph

141 commits

Author SHA1 Message Date
John Preston
a2fad84dae Update API scheme to layer 188. 2024-09-19 12:47:54 +04:00
John Preston
ac92e1c99e Start paid reaction toast notification. 2024-08-14 18:17:49 +02:00
John Preston
5c797d1f31 Update API scheme to layer 185. 2024-07-31 17:03:53 +02:00
John Preston
5b0cac47ad Reapply "Use plain vector for prepared upload parts."
This reverts commit f6f8eefaa0.
2024-04-05 09:51:20 +04:00
John Preston
b39e78a4a9 Reapply "Remove SendMediaReady legacy helper."
This reverts commit 09f07a7a9d.
2024-04-05 09:51:20 +04:00
John Preston
09f07a7a9d Revert "Remove SendMediaReady legacy helper."
This reverts commit 91f8989f70.
2024-04-04 18:36:07 +04:00
John Preston
f6f8eefaa0 Revert "Use plain vector for prepared upload parts."
This reverts commit aaaeea2979.
2024-04-04 18:36:00 +04:00
John Preston
aaaeea2979 Use plain vector for prepared upload parts. 2024-04-03 12:39:08 +04:00
John Preston
91f8989f70 Remove SendMediaReady legacy helper. 2024-04-03 11:59:33 +04:00
John Preston
8545a14763 Fix shortcut messages sizing / emoji panel. 2024-03-08 10:53:59 +04:00
John Preston
6e08b00dba Fix sending .tgs files as stickers.
Regression was introduced in 3467fe226f.
2024-03-08 10:53:59 +04:00
23rd
12272a450f Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
John Preston
bda3bae712 Always use crl::time for media durations. 2023-08-04 08:46:46 +02:00
John Preston
aba84a6010 Update API scheme on layer 160: Duration. 2023-07-20 07:20:10 +04:00
John Preston
04e7ce4408 Update API scheme on layer 160: Replies. 2023-07-20 07:20:09 +04:00
John Preston
2c5d990e1c Implement full theming of attachments in stories. 2023-07-20 07:20:08 +04:00
John Preston
429a3da3e5 Update API scheme to layer 160. 2023-07-20 07:20:07 +04:00
John Preston
9c7fee0bfe Add .m4v as a video file format. 2023-04-23 20:32:00 +04:00
Ilya Fedin
c65b45460b Fix range-v3 deprecation warnings 2023-02-14 18:37:01 +04:00
Ilya Fedin
ce37c6ef08 Implement lossless jpeg progression 2023-01-09 15:00:11 +04:00
John Preston
84288112fc Allow sending photos larger 1280 (experimental).
Improves #6520.
2023-01-02 14:26:41 +04:00
Ilya Fedin
2cbd2725e5 Remove force-disabling of Qt's color space support for sent images
Qt had a bug with interpreting PNG gamma, but it seems it's fixed now.
2022-12-27 11:52:27 +04:00
John Preston
5bee6310c0 Allow sending media with spoilers. 2022-12-26 14:24:05 +04:00
23rd
4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
23rd
2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
23rd
3467fe226f Added ability to send webp as compressed image. 2022-11-22 00:26:49 +00:00
23rd
57c50c8655 Optimized includes of attach_prepare.h. 2022-11-22 00:26:48 +00:00
John Preston
54f467eb47 Don't rely on MTP* when sending photos. 2022-08-11 09:06:56 +03:00
John Preston
0a81246502 Show correct error box when sending file > 4GB. 2022-06-16 13:48:11 +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
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
23rd
5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
John Preston
8b7d2c880e Support rendering Webm videos with alpha. 2022-01-28 19:10:07 +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
53c15ed2ac Make SendingAlbum::Item::Item non-inline. 2021-11-18 11:04:18 +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
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
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
8069fdd873 Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:42:22 +03:00
John Preston
c79cd0b692 Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
23rd
832dd8d50c Moved some photo editor files to separate directories. 2021-07-06 12:13:05 +03:00
23rd
e05343d721 Added sending info of stickered photos. 2021-07-06 12:13:05 +03:00
John Preston
3ec3f6484f Update API scheme to layer 128. 2021-04-06 18:41:15 +04:00
23rd
d4bb62d055 Slightly refactored uploading of edit media. 2021-03-13 12:59:11 +03:00