Andrea Cavalli
5f5fa9afa2
Merge remote-tracking branch 'td/master'
2022-11-25 19:27:21 +01:00
levlam
0b387a61ad
Add source to dup_file_id.
2022-11-21 11:40:43 +03:00
Andrea Cavalli
f42cce37a4
Merge remote-tracking branch 'td/master'
2022-11-06 12:19:22 +01:00
levlam
a13afd0a93
Use std::move to update document fields.
2022-10-20 01:16:24 +03:00
levlam
6917d9c36f
Improve secret chat schema constructor naming.
2022-09-28 12:17:04 +03:00
Andrea Cavalli
10bd3f0afc
Fix merge
2022-08-29 00:58:09 +02:00
Andrea Cavalli
6bddb57999
Merge remote-tracking branch 'td/master'
...
# Conflicts:
# td/telegram/PollManager.cpp
# td/telegram/VideoNotesManager.cpp
2022-08-29 00:41:56 +02:00
levlam
515a9cfb48
Minor improvements.
2022-08-18 23:31:14 +03:00
levlam
04b98aa385
Use OptionManager directly if possible.
2022-08-18 17:00:18 +03:00
levlam
e897298527
Load animation search options on start and remove redundant fields.
2022-08-17 22:16:16 +03:00
levlam
3fe53c7d1d
Remove saved_animations_limit binlog option.
2022-08-17 22:00:55 +03:00
levlam
9fddbf4ee8
Remove redundant parameters.
2022-08-17 21:40:03 +03:00
levlam
3318ffdb20
Proxy all option-related requests through G.
2022-08-17 16:11:13 +03:00
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
277513ce18
Merge remote-tracking branch 'td/master'
2022-07-03 23:48:22 +02:00
levlam
d489014350
Compare stickers and animation by their remote ID when remove them from recent/saved.
2022-07-03 12:17:04 +03:00
levlam
d75791481f
Improve FileView::get_main_file_id() method name.
2022-07-03 12:01:08 +03:00
Andrea Cavalli
377050ced3
Merge remote-tracking branch 'td/master'
2022-06-29 23:33:12 +02:00
levlam
32bac7bd24
Move Promise to tdutils.
2022-06-27 13:30:18 +03:00
Andrea Cavalli
a116cc9b19
Merge remote-tracking branch 'td/master'
2022-06-21 18:38:28 +02:00
Andrea Cavalli
a156fcfb1d
Merge remote-tracking branch 'td/master'
2022-05-16 00:00:04 +02:00
levlam
6790c309ac
Move data reloading to UpdatesManager.
2022-05-12 16:34:13 +03: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
163e739302
Add set_promises/fail_promises helper functions.
2022-04-13 17:40:12 +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
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
9a71c1f0ca
Merge remote-tracking branch 'td/master'
2021-12-03 00:40:25 +01:00
levlam
340e0f0b85
Fix has/have spelling.
2021-12-02 14:15:37 +03:00
Andrea Cavalli
48e3660d2c
Merge remote-tracking branch 'td/master'
2021-11-14 22:46:37 +01:00
levlam
6de2763fac
Remove duplicate logging before net queries.
2021-11-08 16:41:16 +03:00
levlam
616b0e6d6f
Improve ResultHandler/NetActor td_ private field name.
2021-11-08 15:20:38 +03:00
levlam
5578ecc6b8
Remove NetQuery id from ResultHandler and NetActor.
2021-11-08 14:19:57 +03:00
Andrea Cavalli
982b994332
Merge remote-tracking branch 'td/master'
2021-10-16 18:25:57 +02:00
levlam
328c5b57d2
Add Global::request_aborted_error.
2021-10-07 16:36:21 +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
95d60959b1
Remove redundant checks for is_bot.
2021-09-24 11:07:12 +03:00
levlam
d6f3d9f08a
Use error code 400 instead of small error codes.
2021-09-24 10:59:51 +03:00
levlam
db18baa503
Unify include order.
2021-09-19 00:47:05 +03:00