Andrea Cavalli
4cd31ceb93
Merge remote-tracking branch 'td/master'
2022-05-04 17:49:23 +02:00
levlam
17275fe422
Output the number of objects to be freed on closing.
2022-04-25 20:52:44 +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
88b9f35b91
Add PhotoSize.h.
2022-04-10 01:15:49 +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
37123a50ff
Don't create vectors using set iterators.
2022-03-12 13:22:07 +03:00
levlam
1f38124861
Use FlatHashSet.
2022-03-11 21:38:48 +03:00
levlam
b2077f72e4
Fix getWebPageInstantView for loaded web pages with non-loaded instant view.
2022-02-16 19:14:25 +03:00
levlam
15f27455c5
Move other big classes inside FlatHashMap to unique_ptr.
2022-02-11 19:27:32 +03:00
levlam
2b1314295d
Check and fix half of FlatHashMap usages.
2022-02-10 00:59:52 +03:00
Arseny Smirnov
86bceb2972
td: replace most of std::unordered_map usages to td::FlatHashMap
2022-02-07 21:21:31 +01:00
levlam
8b92e8f978
Optimize checked insert to std::map.
2022-02-03 16:24:09 +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
3440f2c07e
Merge remote-tracking branch 'td/master'
2021-12-20 16:51:07 +01:00
levlam
e8c0b8780f
Add CHECK debug.
2021-12-19 18:10:38 +03:00
Andrea Cavalli
48e3660d2c
Merge remote-tracking branch 'td/master'
2021-11-14 22:46:37 +01:00
levlam
60907279fd
Add missing checks for close_flag in Timeout callbacks.
2021-11-13 22:37:41 +03:00
levlam
5a02af8c72
Use const reference if range-based for if appropriate.
2021-11-10 20:39:35 +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
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
00a349656d
Unify td/telegram/include order.
2021-10-27 17:32:09 +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
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
levlam
4c803a1a75
Remove uneeded third try in getWebPageInstantView.
2021-10-07 13:00:41 +03:00
levlam
2f4524a949
Return WebPageId through promise.
2021-10-07 12:49:46 +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
c06a3d9dcf
Merge remote-tracking branch 'td/master'
2021-09-10 15:49:57 +02:00
levlam
0ec10947d5
Fix some misprints.
2021-09-06 13:58:40 +03: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
Andrea Cavalli
232ce6e4d3
Merge remote-tracking branch 'td/master'
2021-08-23 02:22:28 +02:00
levlam
1a2faf5ae6
Add feedback_link to WebPageInstantView.
2021-08-21 10:22:41 +03:00
levlam
aaff89a6c3
Make get_document_object methods const.
2021-08-28 14:16:29 +03:00
levlam
9653cc9e3e
Add separate get_message_content_media_duration.
2021-08-05 02:09:04 +03:00
levlam
da3b8f93a0
Hide too big media timestamps.
2021-08-04 09:28:53 +03:00
levlam
304280df69
Add message.can_get_media_timestamp_links.
2021-08-04 07:57:27 +03:00
levlam
45bf232417
Fimd media timestamp entities in find_entities.
2021-08-04 04:26:41 +03:00
Andrea Cavalli
6b93b00f6a
Merge remote-tracking branch 'td/master'
2021-07-27 23:35:50 +02:00
levlam
389e92f1f4
Add skip_media_timestamps parameter to get_formatted_text.
2021-07-26 22:48:33 +03:00
levlam
5d579af30a
Return duration of web page in get_message_content_duration.
2021-07-26 04:33:56 +03:00
levlam
e0c9efc26b
Skip bot command entities if needed.
2021-07-22 05:39:16 +03:00