Andrea Cavalli
70ad9c53c5
Merge remote-tracking branch 'td/master'
2022-08-13 22:56:08 +02:00
levlam
29460cacc8
Use WaitFreeHashMap for document storages.
2022-08-04 10:50:34 +03:00
levlam
8ec29b019a
Use get_document if possible.
2022-08-03 23:23:32 +03:00
levlam
ad72974e70
Simplify implementation of merge_* for documents.
2022-08-03 21:58:07 +03:00
levlam
33623f9818
Remove unused can_delete_old parameter.
2022-08-03 21:38:03 +03:00
Andrea Cavalli
cd4a07a7c7
Merge remote-tracking branch 'td/master'
2022-07-22 13:09:22 +02:00
levlam
0f87447ffc
Asynchronously destroy some big data storages.
2022-07-20 13:40:14 +03:00
Andrea Cavalli
a116cc9b19
Merge remote-tracking branch 'td/master'
2022-06-21 18:38:28 +02:00
levlam
1e417ea212
Minor fixes.
2022-06-02 16:19:16 +03:00
Andrea Cavalli
a156fcfb1d
Merge remote-tracking branch 'td/master'
2022-05-16 00:00:04 +02:00
levlam
880a582959
Add layer 143 to secret chats.
2022-05-11 07:46:06 +03:00
levlam
f9f309d334
Simplify SecretInputMedia creation.
2022-05-11 01:53:18 +03:00
Andrea Cavalli
d84305048e
Merge remote-tracking branch 'td/master'
2022-04-22 15:35:30 +02: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
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
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
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
fe8f46bfe3
Disable leftover minithumbnails if the option is set
2021-08-03 19:55:27 +02: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
4a8d8a3ffb
Bugfix
2021-04-03 14:52:16 +02:00
Andrea Cavalli
9c67d7a6b7
Fix disable_minithumbnails
2021-04-03 13:10:25 +02: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
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
Andrea Cavalli
f610ff028c
Merge
2020-12-25 20:24:09 +01:00
levlam
34cc9092c9
Update layer 122.
2020-12-18 17:43: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
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
4293e4bec1
Fix some includes.
...
GitOrigin-RevId: 760f9d7e09881bfc061a78118008cf7fdf4660f4
2020-01-27 04:54:01 +03:00
levlam
7bc9e93581
Always send video by bots using inputMessageVideo.
...
GitOrigin-RevId: eccc660e7c91139386a144db52c8f44719401bd2
2020-01-23 00:21:23 +03:00
levlam
80c35676a2
Update copyright year.
...
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23: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
11c0fcc6ec
Do not create documents without file_id.
...
GitOrigin-RevId: c208baf37b108ffb256c3a39dee0459fc081f017
2019-08-01 03:58:49 +03:00
levlam
43483e743d
Update layer to 92: minithumbnails support.
...
GitOrigin-RevId: a2e3bba42504cdaf91db1e0113bc98c450ba78c9
2019-03-01 22:51:33 +03:00
levlam
ed25f88c19
Prefer InputFile over remote location in get_input_media.
...
GitOrigin-RevId: 01db2a0669b966ddac59b7f18b62f154cb54a427
2019-02-12 04:50:30 +03:00