Commit Graph

106 Commits

Author SHA1 Message Date
Andrea Cavalli
d84305048e Merge remote-tracking branch 'td/master' 2022-04-22 15:35:30 +02:00
levlam
ff50eec3ee Add notificationSound.date. 2022-04-15 15:30:51 +03:00
levlam
3378131467 Add fileTypeNotificationSound. 2022-04-12 22:50:20 +03:00
levlam
05c0833525 Add PhotoFormat.h. 2022-04-09 23:21:07 +03:00
Andrea Cavalli
e047add8a2 Update tdlib 2022-03-15 11:36:21 +01:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03:00
Andrea Cavalli
39856bc56f Merge remote-tracking branch 'td/master' 2022-02-05 01:12:29 +01:00
levlam
b1b945e239 Minor fixes. 2022-01-31 15:56:44 +03:00
levlam
d3c712e660 Increase maximum allowed TLD length in email address. 2022-01-30 13:51:28 +03:00
levlam
d187d14660 Treat video stickers as stickers. 2022-01-30 11:59:37 +03:00
levlam
74ac1f664b Disallow big encrypted stickers in secret chats. 2022-01-25 21:52:15 +03:00
levlam
75e5a0b3fe Allow webm stickers in secret chats. 2022-01-25 21:38:25 +03:00
levlam
d6bb83dc0e Support WEBM stickers. 2022-01-25 14:58:04 +03:00
levlam
3aa4ffd0da Ignore video attribute for animated stickers. 2022-01-24 19:06:31 +03:00
levlam
be2678ce94 Add enum StickerFormat. 2022-01-18 19:20:43 +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
9c9772868b Merge remote-tracking branch 'td/master' 2021-11-05 16:11:03 +01:00
levlam
ca7947cf44 Minor improvements. 2021-11-04 12:46:08 +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
a20e8b6db3 Merge remote-tracking branch 'td/master' 2021-09-04 16:03:33 +02:00
levlam
6beaf41231 Minor improvements. 2021-09-01 20:31:39 +03:00
levlam
aaff89a6c3 Make get_document_object methods const. 2021-08-28 14:16:29 +03:00
levlam
cf7c14fb59 Remove unneeded document.is_changed. 2021-08-26 18:50:28 +03:00
Andrea Cavalli
d341c79aa8 Merge remote-tracking branch 'td/master' 2021-08-03 19:56:27 +02:00
levlam
48ce26b6c2 Improve source in get_dimensions. 2021-08-03 01:57:46 +03:00
Andrea Cavalli
4286622a5a Merge remote-tracking branch 'td/master' 2021-08-02 10:47:33 +02:00
levlam
9e3ad28d09 Allow video notes without sound and prevent their creation. 2021-08-01 07:40:57 +03:00
Andrea Cavalli
c41ec7df43 Merge remote-tracking branch 'td/master' 2021-06-30 13:31:50 +02:00
levlam
d7c739dc70 Ignore document and chat photo minithumbnails by bots. 2021-05-27 21:15:30 +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
062d1c2f5a Small bugfix 2021-03-12 18:03:32 +01:00
Andrea Cavalli
1ea79d2739 Merge latest commits 2021-03-11 18:25:39 +01:00
levlam
0c409cb79e Ignore minithumbnails for JPEG sticker thumbnails. 2021-03-03 16:33:17 +03:00
levlam
a36f020084 Improve StickersManager::has_webp_thumbnail. 2021-03-01 23:48:48 +03:00
levlam
8430ba6d19 Remove expect_jpeg_minithumbnail parameter from get_photo_size. 2021-03-01 23:29:55 +03:00
Andrea Cavalli
85fb357a19 Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
Conflicts:
	td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
797aaecf2a Prefer video dimensions over image size attribute. 2021-01-28 15:03:52 +03:00
levlam
6e20aaa428 Add source to get_dimensions. 2021-01-23 22:04:35 +03:00
Andrea Cavalli
f610ff028c Merge 2020-12-25 20:24:09 +01:00
Andrea Cavalli
204757e075 Merge 2020-12-25 18:58:35 +01:00
levlam
34cc9092c9 Update layer 122. 2020-12-18 17:43:23 +03:00
levlam
d22dabfdaf Update layer to 121. 2020-11-09 23:41:23 +03:00
Andrea Cavalli
09e23b61cf Fix json formatting, fix cmake windows support 2020-10-25 10:08:13 +01:00
Andrea Cavalli
017073e0a2 Add memory optimize and memory stats methods 2020-10-25 03:20:24 +02:00