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
a6c98f4bb4
Update API scheme to layer 133.
2021-09-07 23:41:07 +03:00
John Preston
0cfede984c
Update API scheme to layer 132.
2021-08-30 20:32:56 +03:00
John Preston
9510ba07f7
Drop old sticker set cover locations.
2021-05-24 22:45:15 +04:00
John Preston
0e1a445614
Fix serializing peers.
2021-04-12 10:48:17 +04:00
John Preston
16f1875fdc
Fix crash in reading StorageFileLocation.
2021-04-12 10:48:17 +04:00
John Preston
1342077dcb
Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId.
2021-04-09 15:05:00 +04:00
John Preston
3ec3f6484f
Update API scheme to layer 128.
2021-04-06 18:41:15 +04:00
John Preston
ccd440ea0b
Update API scheme.
2021-03-12 16:58:26 +04:00
John Preston
02517f7221
Update API scheme to layer 125.
2021-03-12 16:58:26 +04:00
John Preston
8b96f4c214
Move Media::Clip::Reader and FileLocation to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
ce91caa820
Fix build on macOS.
2020-09-29 19:03:23 +03:00
John Preston
734d834a20
Replace mapbox variant with std::variant.
2020-09-29 19:03:19 +03:00
John Preston
8c45b5e0f8
Show video userpics in media viewer.
2020-07-25 11:24:11 +04:00
John Preston
6513422e40
Remove legacy image-related code.
2020-06-01 18:09:33 +04:00
John Preston
f066e0f05a
Use Data::CloudImage for userpics.
2020-06-01 18:09:33 +04:00
John Preston
ae9ed820ee
Fix sticker set icons display.
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
fb322b5fc5
Use empty Storage::Cache::Key as nullopt.
2020-06-01 18:09:31 +04:00
John Preston
37aabc0da9
Add generic DownloadLocation and ImageLocation.
2020-06-01 18:09:30 +04:00
John Preston
ed715fb810
Update API scheme to layer 111.
2020-03-27 20:36:01 +04:00
John Preston
95ba12e3cb
Update API scheme to layer 107.
2019-11-29 15:36:04 +03:00
John Preston
6343221d7b
Remove many includes from stdafx.pch.
2019-09-06 19:31:07 +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
567bf60644
Use getters in MTP classes.
2019-07-05 16:23:07 +02:00
John Preston
3b645422ff
Implement animated stickerset thumbnails.
2019-07-02 14:43:17 +02:00
John Preston
04e3b250e7
Keep track of fully cached media files.
2019-06-04 14:30:44 +03:00
John Preston
6f2a04e5ae
Add ordering to file location types.
2019-06-04 14:30:43 +03:00
John Preston
b012847017
Fix storage location serialization.
2019-05-30 18:05:23 +03:00
John Preston
c4aac5fa0e
Update API scheme to layer 100.
2019-05-27 15:09:06 +02:00
John Preston
456a949d01
Fix working with document thumbnails.
2019-04-04 00:08:05 +04:00
John Preston
84e9e37353
Closed alpha version 1.6.3.1: Fix build for Xcode.
2019-03-29 14:24:08 +04:00
John Preston
8759d637ff
Use StorageFileLocation in mtpFileLoader.
2019-03-29 14:24:07 +04:00
John Preston
95023ca770
Use StorageFileLocation in streaming loader.
2019-03-29 14:24:07 +04:00
John Preston
aa8f62da9d
Support new ('modern') API file locations.
2019-03-29 14:24:07 +04:00
John Preston
eba2a98703
Add general StorageFileLocation abstraction.
2019-03-29 14:24:06 +04:00
John Preston
7c1704e68b
Fix crash in EditCaptionBox.
2019-02-17 13:51:53 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00