147 Commits

Author SHA1 Message Date
Andrea Cavalli
f42cce37a4 Merge remote-tracking branch 'td/master' 2022-11-06 12:19:22 +01:00
levlam
76c13a21bc Don't drop photo cache if only minithumbnail was changed. 2022-11-05 01:25:19 +03:00
levlam
2a4201f989 Move some functions to Photo.h. 2022-09-22 18:25:20 +03:00
Andrea Cavalli
10bd3f0afc Fix merge 2022-08-29 00:58:09 +02:00
Andrea Cavalli
a116cc9b19 Merge remote-tracking branch 'td/master' 2022-06-21 18:38:28 +02:00
Andrea Cavalli
f85e534704 Merge remote-tracking branch 'td/master' 2022-06-05 18:32:00 +02:00
levlam
014b458425 Add Dimensions.h. 2022-06-02 17:52:12 +03:00
levlam
1e417ea212 Minor fixes. 2022-06-02 16:19:16 +03:00
Andrea Cavalli
f73adb408a Merge remote-tracking branch 'td/master' 2022-06-01 23:25:22 +02:00
levlam
3b4b276737 Add chatPhoto.small_animation. 2022-05-30 04:01:55 +03:00
levlam
a90dd653af Avoid logging to error if invalid dimensions were provided by app. 2022-05-26 17:13:31 +03:00
levlam
0909f88bc3 Use int53 for file size in TDLib API. 2022-05-11 17:17:20 +03:00
Andrea Cavalli
4cd31ceb93 Merge remote-tracking branch 'td/master' 2022-05-04 17:49:23 +02:00
levlam
6a87f0c6ef Avoid updating chat photo minithumbnail to 40x40 full minithumbnail. 2022-04-29 10:50:10 +03:00
levlam
58ff3d5e5d Ignore photo size for fake dialog photo. 2022-04-28 22:29:10 +03:00
levlam
f421cff7f3 Add and use is_same_dialog_photo. 2022-04-28 21:02:44 +03:00
levlam
b6f711044f Add as_dialog_photo. 2022-04-28 20:33:24 +03:00
Andrea Cavalli
d84305048e Merge remote-tracking branch 'td/master' 2022-04-22 15:35:30 +02:00
levlam
9c3675d61b Minor fixes. 2022-04-16 06:01:05 +03:00
levlam
88b9f35b91 Add PhotoSize.h. 2022-04-10 01:15:49 +03:00
Andrea Cavalli
39856bc56f Merge remote-tracking branch 'td/master' 2022-02-05 01:12:29 +01:00
levlam
d6bb83dc0e Support WEBM stickers. 2022-01-25 14:58:04 +03:00
Andrea Cavalli
09b98f6b30 Merge remote-tracking branch 'td/master' 2022-01-04 00:04:21 +01:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
Andrea Cavalli
48e3660d2c Merge remote-tracking branch 'td/master' 2021-11-14 22:46:37 +01:00
levlam
e52508bdc1 Add source to PhotoSizeSource::get_type. 2021-11-14 10:47:02 +03:00
Andrea Cavalli
9c9772868b Merge remote-tracking branch 'td/master' 2021-11-05 16:11:03 +01:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
6f34c5c6a1 Make PhotoSizeSource constructors named. 2021-10-27 16:52:22 +03:00
Andrea Cavalli
98244d1346 Merge remote-tracking branch 'td/master' 2021-10-20 02:21:14 +02:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
Andrea Cavalli
45e855f89d Remove most memory related features
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
897d4af16c Merge remote-tracking branch 'td/master' 2021-09-25 19:24:57 +02:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
Andrea Cavalli
fe8f46bfe3 Disable leftover minithumbnails if the option is set 2021-08-03 19:55:27 +02:00
Andrea Cavalli
4286622a5a Merge remote-tracking branch 'td/master' 2021-08-02 10:47:33 +02:00
levlam
1223c72741 Add class EncryptedFile. 2021-08-01 06:17:51 +03:00
Andrea Cavalli
c41ec7df43 Merge remote-tracking branch 'td/master' 2021-06-30 13:31:50 +02:00
levlam
9664181d48 Improve log messages. 2021-06-27 04:36:06 +03:00
levlam
7e61f9c95c Improve error message. 2021-05-31 20:06:08 +03:00
Andrea Cavalli
2c77e82300 Merge remote-tracking branch 'td/master' into dev 2021-05-27 00:50:41 +02:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
Andrea Cavalli
40048f12ca Merge 2021-05-04 22:17:39 +02:00
levlam
3786033316 Add minithumbnails to userProfilePhoto and chatPhotoInfo. 2021-04-09 17:01:58 +03:00
Andrea Cavalli
4a8d8a3ffb Bugfix 2021-04-03 14:52:16 +02:00
Andrea Cavalli
9c67d7a6b7 Fix disable_minithumbnails 2021-04-03 13:10:25 +02:00
levlam
26dc0ad930 Update layer to 127. 2021-03-26 18:15:21 +03:00
Andrea Cavalli
78291a96d4 Merge commit '70b71d569b81c66b25f8f77d9536b1d41fbf091d' 2021-03-21 01:04:45 +01:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
Andrea Cavalli
1ea79d2739 Merge latest commits 2021-03-11 18:25:39 +01:00