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
levlam
2641ffed31
Improve logging in FileManager.
2021-07-20 18:49:29 +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
levlam
50a8e66965
Improve error messages.
2021-06-26 04:20:59 +03:00
levlam
9cecc116f3
Prefer US spelling of "canceled".
2021-05-31 21:51:48 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
a6a4eb6616
Don't include SliceBuilder.h in logging.h.
2021-05-17 15:21:11 +03:00
Andrea Cavalli
40048f12ca
Merge
2021-05-04 22:17:39 +02:00
levlam
75e593fd51
Return errors with code 400 from FileManager::from_persistent_id.
2021-04-29 16:04:04 +03: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
3e53ba98d3
Fix file manager
2021-03-13 00:25:19 +01:00
Andrea Cavalli
9115565603
Fix file manager
2021-03-12 21:12:01 +01:00
Andrea Cavalli
ce9a9ebbf9
Clean memory only if needed
2021-03-12 19:41:27 +01:00
Andrea Cavalli
4a1b295baa
Undo breaking database modifications, add tl-parser
2021-03-12 12:31:51 +01:00
Andrea Cavalli
1ea79d2739
Merge latest commits
2021-03-11 18:25:39 +01:00
levlam
67889cdcbc
Add td_api::getGroupCallStreamSegment.
2021-03-10 22:50:14 +03:00
levlam
ef59e47807
Fix uploadImportedMedia.
2021-01-26 02:55:48 +03:00
levlam
15fe7f7a04
Rename suggested_name to suggested_path.
2021-01-26 02:39:48 +03:00
levlam
bff723436a
Upload inported messages as small files.
2021-01-22 18:13:38 +03:00
levlam
6f38576467
Add FileManager::guess_file_type.
2021-01-22 15:17:56 +03:00
Andrea Cavalli
a84a9f472d
Bugfixes
2021-01-12 17:12:29 +01:00
Andrea Cavalli
a79f835de0
Add memory_cleanup on tear_down, and add more memory_cleanup.
2021-01-12 01:37:17 +01:00
Andrea Cavalli
85fb357a19
Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
...
Conflicts:
td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00