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
levlam
641ee080c1
Improve names of FileType::Secure.
2022-04-25 19:00:40 +03:00
levlam
a7bd57a793
Add checks for file_id/file_node_id overflow.
2022-04-25 17:33:31 +03:00
Andrea Cavalli
d84305048e
Merge remote-tracking branch 'td/master'
2022-04-22 15:35:30 +02:00
levlam
f76a9660ed
Add can_reuse_remote_file to FileType.cpp.
2022-04-22 14:28:51 +03:00
levlam
f396cadc1a
Add FileType::CallLog.
2022-04-21 22:34:26 +03:00
levlam
7fcd92a622
Move is_document_file_type to FileType.cpp.
2022-04-21 21:54:33 +03:00
levlam
497bc9006a
Support setting files from secret chats as ringtones.
2022-04-15 14:37:01 +03:00
levlam
a16a5ec5e3
Support ringtone uploading.
2022-04-15 14:07:54 +03:00
levlam
42c6280321
Add addSavedNotificationSound.
2022-04-14 22:39:25 +03:00
levlam
3378131467
Add fileTypeNotificationSound.
2022-04-12 22:50:20 +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
levlam
9526d2aa21
Add class td_api::downloadedFileCounts.
2022-03-05 04:11:18 +03:00
levlam
a79ae236bc
Add new updates about file downloads.
2022-03-05 03:14:31 +03:00
Arseny Smirnov
f1cf7bdc3f
DownloadManager: remove file when local file is removed
2022-03-03 17:07:20 +01:00
levlam
c9bd5d3651
Minor improvements.
2022-03-01 18:01:50 +03:00
Arseny Smirnov
52abb9c5d5
DownloadManager create unique callback for each download
2022-03-01 15:34:51 +01:00
levlam
1f300c50e0
DownloadManager fixes.
2022-02-28 18:25:07 +03:00
Arseny Smirnov
08675f2df1
FileManager: support limit={KEEP,IGNORE}_DOWNLOAD_LIMIT in download method
2022-02-28 13:15:00 +01:00
Arseny Smirnov
f13598ec83
DownloadManager: WIP
2022-02-26 19:56:43 +01:00
Arseny Smirnov
d4a4f5fb5d
Proxy some updates about file to DownloadManger.
2022-02-25 23:17:30 +01:00
levlam
0fb84181ec
Add mkv to the list of allowed video extensions.
2022-02-17 15:14:49 +03:00
Andrea Cavalli
39856bc56f
Merge remote-tracking branch 'td/master'
2022-02-05 01:12:29 +01:00
levlam
b1b945e239
Minor fixes.
2022-01-31 15:56:44 +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
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
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
982b994332
Merge remote-tracking branch 'td/master'
2021-10-16 18:25:57 +02:00
levlam
b1d61383ef
Remove some logging for files.
2021-10-12 11:15:25 +03:00
levlam
328c5b57d2
Add Global::request_aborted_error.
2021-10-07 16:36:21 +03:00
levlam
3b794126d8
Avoid G usage in lambda promises.
2021-10-07 15:28:52 +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
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02:00
levlam
6801eabb8d
Add some FileView emptiness checks.
2021-09-16 16:58:30 +03:00
levlam
b1eb6db7b5
Minor logging improvements.
2021-08-26 21:44:29 +03:00
Andrea Cavalli
b847c925db
Merge remote-tracking branch 'td/master'
2021-07-30 10:59:01 +02:00
levlam
c2028aed4f
Add limit on maximum videoNote size.
2021-07-29 23:39:07 +03: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
levlam
85fab586ef
Increase file size for reuse_uploaded_photos_by_hash just in case.
2021-07-21 03:26:47 +03:00
levlam
2a9f83cd94
Don't dup URL file identifiers.
2021-07-21 03:16:55 +03:00