Commit Graph

53 Commits

Author SHA1 Message Date
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 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 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
levlam f70498898b Add fileSourceAppConfig. 2021-10-08 13:41:22 +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 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
andrew (from workstation) 49c2bbd9b5 fix get_all_file_sources declaration 2021-01-03 12:11:35 +01:00
andrew (from workstation) c66972354a get all elements without offset 2021-01-03 12:07:48 +01:00
Andrea Cavalli 85fb357a19 Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
Conflicts:
	td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00
levlam 52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
andrew (from workstation) e0d8a39ce4 remove unused file sources 2021-01-01 12:21:33 +01:00
Andrea Cavalli 7ef40eea0c Group call patches
Add disable_group_calls boolean option
Add memory_cleanup and memory_stats to FileReferenceManager
Add memory_cleanup and memory_stats to GroupCallManager
2020-12-28 16:10:05 +01:00
Andrea Cavalli 5c4e8bc0bd More fixes 2020-08-03 18:13:38 +02:00
Andrea Cavalli cc087aeacd Merge commit 'ab5d35371b1fdcfb30dfa981ede54ec83db214a9'
Conflicts:
	sqlite/CMakeLists.txt
	td/telegram/ContactsManager.cpp
	td/telegram/Photo.cpp
	td/telegram/Td.cpp
	td/telegram/WebPagesManager.cpp
	td/telegram/files/FileManager.h
2020-07-29 16:39:33 +02:00
levlam a7bd0c3932 Add photo to *FullInfo.
GitOrigin-RevId: 21346a0880239abe428799fa58b9132abded6f13
2020-07-06 15:26:29 +03:00
levlam 2ad13e414e Remove file reference tracing for chat photos.
GitOrigin-RevId: 1cb90efec24192b5a712cabde325c8768e1af572
2020-06-27 17:05:45 +03:00
Andrea Cavalli e3bf0f63f0 Patches 2020-05-23 21:27:24 +02:00
levlam 80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam 0618005a95 Add FullMessageId.h.
GitOrigin-RevId: 758133149ff3317b3d9d3f86b1a841e8f34ca35a
2019-11-26 19:53:10 +03:00
levlam 6b001fedd9 Add basic protectiong from cyclic successful file reference repair.
GitOrigin-RevId: f0d3ef24dc95ed1f5ed06801abc435ee40c80f01
2019-10-18 04:30:49 +03:00
levlam 84695437d3 Various fixes.
GitOrigin-RevId: 94d0df55495a08b5599c90f56dbe08ac3a3d65e5
2019-08-14 03:13:34 +03:00
Arseny Smirnov 089d73953c FileManager: reload photo on FILE_ID_INVALID
GitOrigin-RevId: defb6736befa35189253f8ac70342be81a607918
2019-07-30 17:42:36 +03:00
levlam 8d132d9505 Fix CE.
GitOrigin-RevId: 925d3fbd4a7414caffe7269b7283246bdc03d0a2
2019-07-25 00:00:21 +03:00
levlam 88febd4aa0 File reference support for backgrounds.
GitOrigin-RevId: e4c7f0ee8e6be2341e51f7ef86edfcd264089e3c
2019-05-09 04:07:21 +03:00
levlam 85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00
levlam b78db4d902 Trying to keep files, needed for messages in other chats.
GitOrigin-RevId: 454f3143aec958a08ea35edecc808ef99eb795cf
2019-04-28 20:21:44 +03:00
levlam 6a43a9e91e Support file reference errors in SendMultiMediaActor.
GitOrigin-RevId: ef25dd8bedab0998db1e57572e46e072c5e2e374
2019-02-08 17:54:23 +03:00
levlam 005f943537 Add fileSourceFavoriteStickers.
GitOrigin-RevId: 4affa759ed53ace4b2f03c44cbf9f1c66b4890ac
2019-02-02 13:54:40 +03:00
levlam 7095879641 Add fileSourceRecentStickers.
GitOrigin-RevId: 727361a312d64588852dad07b1742bf596e9b5ad
2019-02-02 13:30:49 +03:00
levlam 996869d4ca Implement store/parse FileSourceId.
GitOrigin-RevId: ff0d80bf2a8d479dae0cdca2c806a9731ff499d9
2019-01-31 00:37:38 +03:00
Arseny Smirnov 06a82aff73 FileManager: store file source in db (partial imlementation)
GitOrigin-RevId: 860e92368e226401e57072e8d64df48c263029f6
2019-01-29 15:07:58 +04:00
levlam 0ac8c2d389 Repair file_reference in SaveGifQuery.
GitOrigin-RevId: ae9fcc543795a659c51699af8ea0048a0b5f8fb5
2019-01-23 22:20:48 +03:00
levlam 6633b87d51 Add is_file_reference_error.
GitOrigin-RevId: 7c36433edff5de1a9ef6c2ffb0b4745e4aede0be
2019-01-23 19:00:56 +03:00
levlam c52f9b6b6a Better logging.
GitOrigin-RevId: 94da2ea5502310357d977aafb1ff5eec71f553d5
2019-01-21 21:22:56 +03:00
levlam cdefe9b1ee SetWithPosition CE and other fixes.
GitOrigin-RevId: 69278e7906c738924e1a4771b5b755ff349ea26f
2019-01-19 20:19:29 +03:00
levlam 3bc0d8eb9a Add FileSourceId.h.
GitOrigin-RevId: 98707d3c9248fb4873ccb8b1e890bb0926bfed73
2019-01-19 05:44:31 +03:00
levlam d4882f7c07 Add change_files_source method.
GitOrigin-RevId: 25078e0ca82d34489727823bfcfa781424f48913
2019-01-18 23:12:09 +03:00
levlam afed91fec9 Add create_*_file_source methods.
GitOrigin-RevId: 52c2f793bb911a7068b0ee29f8b15086c7c74a67
2019-01-18 22:36:23 +03:00
levlam 94f94750fe Add FileReferenceManager::get_current_file_source_id.
GitOrigin-RevId: 29f3bef8926e205c0c262ffe740c4cbd444e46b7
2019-01-18 22:10:38 +03:00
levlam 1f5a86ea58 Store correspondence between message and FileSourceId in MessagesManager.
GitOrigin-RevId: 1fc23f6032c473639ce24e6564632d80327d24b3
2019-01-18 21:24:03 +03:00
Arseny Smirnov 5bba9b0470 SetWithPosition: fixes and tests
GitOrigin-RevId: 7b74a05c72261222a4f43b86eecad668ffd40403
2019-01-18 19:39:19 +03:00
Arseny Smirnov 6ca19e05c5 FileReferenceManager: bugfixes
GitOrigin-RevId: 51d33c307297124dddb72224220977e1f31a15bd
2019-01-18 17:52:49 +03:00
Arseny Smirnov a6e47943c3 FileReferenceManager: new queries logic
GitOrigin-RevId: 82592baaed566ef28e044cd0dc9fe67b625ae2ab
2019-01-17 23:42:00 +03:00