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
levlam
a6c0902ad7
Silence g++ warnings.
2021-12-01 16:01:27 +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
6f34c5c6a1
Make PhotoSizeSource constructors named.
2021-10-27 16:52:22 +03:00
levlam
c0fb888c42
Fix GCC 4.9 compilation errors.
2021-10-24 02:09:36 +03:00
levlam
c24501f2d9
Reduce "this" usages.
2021-10-23 21:17:00 +03:00
Andrea Cavalli
f11254bdcb
Merge remote-tracking branch 'td/master'
2021-10-21 17:09:27 +02:00
levlam
9f44816a62
Minor improvements.
2021-10-21 12:51:16 +03:00
Andrea Cavalli
98244d1346
Merge remote-tracking branch 'td/master'
2021-10-20 02:21:14 +02:00
levlam
1e49f6dc13
Use auto as variable type if it is initialized with a cast.
2021-10-20 01:27:02 +03:00
levlam
db7aa28bdf
A lot more minor improvements.
2021-10-19 18:11:16 +03:00
levlam
81b38d5607
Mark move constructors/assignment operators noexcept.
2021-10-18 14:36:15 +03:00
levlam
f35afe23c8
Minor warning fixes.
2021-10-18 12:57:13 +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
4bfc3eb945
Remove logging of FileDb operations.
2021-10-12 10:52:37 +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
levlam
b34cfef4d0
Replace begin_transaction with begin_read_transaction and begin_write_transaction.
2021-10-07 13:18:00 +03:00
Andrea Cavalli
9ca532c6a6
Merge remote-tracking branch 'td/master'
2021-09-26 23:08:36 +02:00
levlam
c5a2e9a870
Load only chats with known info in MessagesManager::load_dialogs.
2021-09-26 19:38:27 +03: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
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
71c2330749
Merge remote-tracking branch 'td/master'
2021-09-14 23:58:34 +02:00
levlam
088c3169d4
Minor.
2021-09-10 18:23:23 +03:00
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02:00
levlam
86de43a048
Remove useless #include comments.
2021-09-03 23:21:44 +03:00
levlam
6801eabb8d
Add some FileView emptiness checks.
2021-09-16 16:58:30 +03:00
Andrea Cavalli
232ce6e4d3
Merge remote-tracking branch 'td/master'
2021-08-23 02:22:28 +02:00
levlam
b1eb6db7b5
Minor logging improvements.
2021-08-26 21:44:29 +03:00
levlam
209dd8b41b
Don't drop fully uploaded partial secure location.
2021-08-26 21:20:55 +03:00
levlam
897a4e26a7
Allow RemoteFileLocation logging.
2021-08-26 20:34:51 +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
5b4a657228
Minor include fixes.
2021-08-05 01:09:39 +03:00
levlam
07630feb8c
Add td_api::getSuggestedFileName.
2021-07-24 07:19:22 +03:00
levlam
8e750b867c
Simplify PSLICE usage in FileLoaderUtils.
2021-07-23 20:56:44 +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