109 Commits

Author SHA1 Message Date
Andrea Cavalli
b084b2facf Fix compilation issues 2022-11-25 21:37:20 +01:00
Andrea Cavalli
5f5fa9afa2 Merge remote-tracking branch 'td/master' 2022-11-25 19:27:21 +01:00
levlam
5081ef4c2a Use WaitFreeHashMap to store nodes in FileReferenceManager. 2022-11-17 19:13:36 +03:00
Andrea Cavalli
10bd3f0afc Fix merge 2022-08-29 00:58:09 +02:00
Andrea Cavalli
70ad9c53c5 Merge remote-tracking branch 'td/master' 2022-08-13 22:56:08 +02:00
levlam
e7fa6741aa Support file reference repair for files of attachment menu bots. 2022-08-10 21:12:05 +03:00
levlam
2865be8dd7 Store link to parent in FileReferenceManager. 2022-08-09 17:00:36 +03:00
levlam
44e96081c6 Support file reference repair for bot description photo and animation. 2022-08-06 13:42:35 +03:00
Andrea Cavalli
cd4a07a7c7 Merge remote-tracking branch 'td/master' 2022-07-22 13:09:22 +02:00
levlam
0f87447ffc Asynchronously destroy some big data storages. 2022-07-20 13:40:14 +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
d84305048e Merge remote-tracking branch 'td/master' 2022-04-22 15:35:30 +02:00
levlam
77532d67f8 Support file reference repair for notification sounds. 2022-04-15 16:27:30 +03:00
Andrea Cavalli
e047add8a2 Update tdlib 2022-03-15 11:36:21 +01:00
levlam
4d7afaedbb Improve DownloadManager initialization. 2022-03-01 23:09:40 +03:00
levlam
a3cef00551 DownloadManager fixes and improvements. 2022-02-27 18:23:06 +03:00
levlam
4524ba0380 Add FileReferenceManager::get_file_info. 2022-02-26 21:52:14 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +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
9a71c1f0ca Merge remote-tracking branch 'td/master' 2021-12-03 00:40:25 +01:00
levlam
4f8cfce082 Fix g++4.9 compilation errors. 2021-12-01 20:54:56 +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
Andrea Cavalli
9c9772868b Merge remote-tracking branch 'td/master' 2021-11-05 16:11:03 +01: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
982b994332 Merge remote-tracking branch 'td/master' 2021-10-16 18:25:57 +02:00
levlam
f70498898b Add fileSourceAppConfig. 2021-10-08 13:41:22 +03:00
levlam
3b794126d8 Avoid G usage in lambda promises. 2021-10-07 15:28:52 +03:00
levlam
c85f993de8 Improve captured actor_id names. 2021-10-07 13:38:49 +03:00
levlam
2f4524a949 Return WebPageId through promise. 2021-10-07 12:49:46 +03:00
Andrea Cavalli
4e70729edb Merge remote-tracking branch 'td/master' 2021-10-07 00:51:58 +02:00
levlam
9217e9090a Remove useless PSLICE/PSTRING. 2021-10-06 13:48:29 +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
3dde04b17f Merge remote-tracking branch 'td/master' 2021-07-17 11:15:40 +02:00
levlam
0dc4b5a469 Add source to get_messages_from_server. 2021-07-08 17:09:16 +03:00
Andrea Cavalli
c41ec7df43 Merge remote-tracking branch 'td/master' 2021-06-30 13:31:50 +02: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
levlam
4bb76a7b6f Update layer to 128. Remove photo volume_id/local_id. 2021-04-16 17:43:51 +03:00
Andrea Cavalli
08bd345987 Change default values of experimental options 2021-01-07 19:18:45 +01:00
Andrea Cavalli
934c13ca79 Optimize_memory code cleanup, add more error messages in MessagesManager 2021-01-05 02:37:34 +01:00
Andrea Cavalli
5686d574f8 Add experimental options 2021-01-04 12:00:33 +01:00
andrew (from workstation)
c66972354a get all elements without offset 2021-01-03 12:07:48 +01:00
andrew (from workstation)
0eedaeea3a fix index 2021-01-02 19:15:12 +01:00
andrew (from workstation)
eb41d4bb20 fix iterator 2021-01-02 15:09:55 +01:00
Andrea Cavalli
85fb357a19 Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
Conflicts:
	td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00