Commit Graph

596 Commits

Author SHA1 Message Date
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
John Preston b487644355 Fix incorrect bad file size logging. 2021-09-02 11:03:40 +03:00
23rd b635a9d4a5 Changed voice playback speed setting to storage value of speed. 2021-09-01 01:23:20 +03:00
23rd eadd7704ef Removed Main::Session forward declaration from data_types. 2021-09-01 01:23:20 +03:00
John Preston f59db10267 Update default chat background. 2021-08-31 22:10:39 +03:00
John Preston 85e4c8527b Always write local drafts the same way. 2021-08-30 20:32:58 +03:00
23rd ddd5617043 Fixed processing GIF images as non-album files.
Fixed #16844.
2021-08-23 13:57:31 +03:00
John Preston 85cc3b30a0 Don't use MTP* for WallPaper flags. 2021-08-12 12:32:30 +03:00
23rd 852e46f0c9 Added filepath removal for modified images in photo editor.
Fixed #16791.
2021-08-12 02:35:53 +03:00
John Preston c79cd0b692 Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
Ilya Fedin 97262a99c7 Get rid of osx and linux32 special targets 2021-08-11 16:59:27 +03:00
23rd 024bb5e54f Moved App::formatPhone to td_ui. 2021-07-26 17:38:51 +03:00
John Preston 8f478b86ee Change default wallpaper. 2021-07-23 15:42:17 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
Ilya Fedin 89765340c3 Fix -Wunused-function warnings 2021-07-13 21:31:22 +03:00
John Preston 4206ff0483 Don't use MTP* for StickersSet flags. 2021-07-09 09:08:58 +03:00
John Preston 75090dedaa Don't store MTPInputStickerSet in data. 2021-07-08 22:08:59 +03:00
John Preston a74228acea Don't use MTP* for ChannelData flags. 2021-07-08 16:11:09 +03:00
John Preston 5040c2e766 Don't use MTP* for ChatData flags. 2021-07-08 15:11:46 +03:00