Andrea Cavalli
0bfef9e46f
Merge remote-tracking branch 'td/master'
2022-09-22 01:07:13 +02:00
levlam
ce1292ea32
Allow to always reuse photos from inputMessagePhoto.
2022-09-15 16:08:19 +03: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
8f433070df
Minor fixes.
2022-08-14 15:04:08 +03:00
Andrea Cavalli
70ad9c53c5
Merge remote-tracking branch 'td/master'
2022-08-13 22:56:08 +02:00
Andrea Cavalli
eadb920736
Merge remote-tracking branch 'td/master'
2022-08-06 22:08:15 +02:00
levlam
2be350b8fe
Support multiple sizes for audio album covers.
2022-08-05 22:43:53 +03:00
levlam
779090f4dd
Add more WaitFree* classes usages.
2022-08-04 14:48:10 +03:00
levlam
90b04eb3b6
Use WaitFreeVector in FileManager.
2022-08-02 14:45:22 +03:00
levlam
90df870adb
Support audio thumbnail download.
2022-07-28 16:47:19 +03:00
levlam
3a275827e9
Add FileManager::is_remotely_generated_file and improve some names.
2022-07-28 15:59:57 +03:00
levlam
3afbce24b3
Disable getStorageStatisticsFast for bots to reduce disk usage in the main thread.
2022-07-23 23:50:28 +03:00
Andrea Cavalli
cd4a07a7c7
Merge remote-tracking branch 'td/master'
2022-07-22 13:09:22 +02:00
levlam
4ac8be8122
Check local location of files when adding them to download manager.
2022-07-20 16:46:55 +03:00
Andrea Cavalli
277513ce18
Merge remote-tracking branch 'td/master'
2022-07-03 23:48:22 +02: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
70050704d2
Remove unimplemented UploadCallback::on_progress.
2022-05-15 01:13:07 +03:00
levlam
0909f88bc3
Use int53 for file size in TDLib API.
2022-05-11 17:17:20 +03:00
Andrea Cavalli
4cd31ceb93
Merge remote-tracking branch 'td/master'
2022-05-04 17:49:23 +02:00
levlam
641ee080c1
Improve names of FileType::Secure.
2022-04-25 19:00:40 +03:00
Andrea Cavalli
e047add8a2
Update tdlib
2022-03-15 11:36:21 +01:00
levlam
1f38124861
Use FlatHashSet.
2022-03-11 21:38:48 +03:00
Arseny Smirnov
08675f2df1
FileManager: support limit={KEEP,IGNORE}_DOWNLOAD_LIMIT in download method
2022-02-28 13:15:00 +01:00
levlam
bcc2adeb47
Fix includes and formatting.
2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972
td: replace most of std::unordered_map usages to td::FlatHashMap
2022-02-07 21:21:31 +01: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
48e3660d2c
Merge remote-tracking branch 'td/master'
2021-11-14 22:46:37 +01:00
levlam
e52508bdc1
Add source to PhotoSizeSource::get_type.
2021-11-14 10:47:02 +03:00
levlam
b731414d42
Init some fields just in case.
2021-11-11 17:39:09 +03:00
Andrea Cavalli
9c9772868b
Merge remote-tracking branch 'td/master'
2021-11-05 16:11:03 +01:00
Andrea Cavalli
9b0d54de26
Merge remote-tracking branch 'td/master'
2021-10-29 00:31:20 +02:00
levlam
318b782c25
Fix may_reload_photo.
2021-10-28 12:57:26 +03:00
levlam
00a349656d
Unify td/telegram/include order.
2021-10-27 17:32:09 +03:00
levlam
c24501f2d9
Reduce "this" usages.
2021-10-23 21:17:00 +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
9ca532c6a6
Merge remote-tracking branch 'td/master'
2021-09-26 23:08:36 +02:00
levlam
d882e222a7
Make FileStats fields private.
2021-09-26 12:44:18 +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
6b93b00f6a
Merge remote-tracking branch 'td/master'
2021-07-27 23:35:50 +02:00
levlam
07630feb8c
Add td_api::getSuggestedFileName.
2021-07-24 07:19:22 +03:00
Andrea Cavalli
3dde04b17f
Merge remote-tracking branch 'td/master'
2021-07-17 11:15:40 +02:00
levlam
40c5d47717
Make inherited classes final if possible.
2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98
Use final instead of override.
2021-07-03 23:51:36 +03:00
Andrea Cavalli
c41ec7df43
Merge remote-tracking branch 'td/master'
2021-06-30 13:31:50 +02:00