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
Andrea Cavalli
5cff13f2ae
Better documents cleanup
2020-10-21 22:17:07 +02:00
cc087aeacd
Merge commit 'ab5d35371b1fdcfb30dfa981ede54ec83db214a9'
...
Conflicts:
sqlite/CMakeLists.txt
td/telegram/ContactsManager.cpp
td/telegram/Photo.cpp
td/telegram/Td.cpp
td/telegram/WebPagesManager.cpp
td/telegram/files/FileManager.h
2020-07-29 16:39:33 +02:00
levlam
3fefdb6462
Add td_api::animatedChatPhoto.
...
GitOrigin-RevId: 430f3b6bcb0bcfaffdcc6f26a4ee017518a64162
2020-07-07 11:41:01 +03:00
levlam
d5b4c57993
Add inputMessageDocument.force_file.
...
GitOrigin-RevId: 7f2780ba7f333e5f8df9c28bab429b8b12eaf26c
2020-06-22 02:02:21 +03:00
205fa52f8d
Merge commit '44689f81ff8b9bc4583c1c889d8034c47f0c5270'
...
Conflicts:
td/telegram/DialogDb.cpp
td/telegram/MessagesManager.cpp
td/telegram/StickersManager.cpp
td/telegram/TdDb.cpp
td/telegram/WebPagesManager.cpp
2020-06-11 17:44:52 +02:00
e3bf0f63f0
Patches
2020-05-23 21:27:24 +02:00
levlam
d647a2a2e8
Represent photo format as enum PhotoFormat.
...
GitOrigin-RevId: 9205a8c775111ff394e7c32bc52d343b41e53379
2020-05-11 22:17:49 +03:00
levlam
c376c1ac08
Add comments about disallowed animated stickers.
...
GitOrigin-RevId: 52115deae5121cb29b332a6d9782cdd4506d8ce0
2020-05-06 00:56:44 +03:00
levlam
f2e549e361
Do not dup remotely available files for bots to fix bad FileManager performance.
...
GitOrigin-RevId: adbd9e3fdfdf249572472bcbccfea030c75a6992
2020-05-03 15:44:33 +03:00
levlam
80c35676a2
Update copyright year.
...
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
113f3a7080
Add thumbnailFormatGif.
...
GitOrigin-RevId: 4ad35c83a6ae47d92cbb66cb60622d147f11c7b4
2020-06-01 20:34:48 +03:00
levlam
8d0fa5ce77
Add td_api::thumbnail.
...
GitOrigin-RevId: b74fa62e415816ce63d3bd4415bd2bb8d6aa3f8b
2020-05-31 22:22:15 +03:00
levlam
4a1e2ee34c
Add animated thumbnail support for animations and videos
...
GitOrigin-RevId: a9026a32be9a9ddf2597c6244e112fd853d81b1f
2020-05-30 01:48:56 +03:00
levlam
e8cb1dfeb5
Support stickers attached to animation.
...
GitOrigin-RevId: 3e2464146410fbc68b51721b10327f1ac92cbb66
2020-05-29 11:51:51 +03:00
levlam
c1a201fd7f
Use main remote location for upload.
...
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
ebcc1d0dc3
Strip empty characters in file names.
...
GitOrigin-RevId: 896c899c9d0893b467844b5640d8f65b240bc759
2019-10-04 18:00:51 +03:00
levlam
8949e040b8
Do not allow encrypted and web animated stickers.
...
GitOrigin-RevId: 78ea903caa414056180ed19c7a1a3f3873753b4a
2019-09-15 03:38:20 +03:00