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
66170213fc
Add store/parse_background.
2021-09-24 16:03:01 +03:00
levlam
db18baa503
Unify include order.
2021-09-19 00:47:05 +03:00
Andrea Cavalli
6e1836a024
Merge remote-tracking branch 'td/master'
2021-09-15 16:03:11 +02:00
levlam
075d004b9f
Replace getChatThemes with updateChatThemes.
2021-09-13 15:55:01 +03:00
Andrea Cavalli
37b1d48470
Fix compilation warnings and errors
2021-09-10 15:47:26 +02: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
7dffe5aabe
Use Promise instead of RequestActor in getBackgrounds.
2021-09-03 09:07:18 +03:00
levlam
3e77161e46
Don't replace main background type if appropriate.
2021-08-27 12:10:51 +03:00
levlam
bba085318e
Return BackgroundType from on_get_background.
2021-08-24 17:13:51 +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
138535ccf8
Store multiple local backgrounds.
2021-06-10 18:58:19 +03:00
levlam
64df3b4b3c
Remove unneeded add_local_background method and allow non-default installed backgrounds without file.
2021-06-10 04:55:58 +03:00
levlam
75fc042e09
Replace add_fill_background with add_local_background.
2021-06-10 04:44:39 +03:00
levlam
aba5b1ab7c
Use autoincremented IDs for local backgrounds.
2021-06-10 03:57:58 +03:00
levlam
636aa3f74e
Improve BackgroundType constructor.
2021-06-10 02:09:16 +03:00
levlam
958e1a83b1
Make BackgroundType fields private.
2021-06-10 01:29:42 +03:00
levlam
7b2c6bdbdb
Move BackgroundType methods inside the class.
2021-06-09 21:19:08 +03:00
levlam
d768a194f6
Add BackgroundType::get_mime_type.
2021-06-09 20:58:39 +03:00
levlam
2657f41775
Use BackgroundType::has_file if possible.
2021-06-09 20:48:15 +03:00
levlam
4a35b3e621
Remove BackgroundType::is_server.
2021-06-09 19:19:48 +03:00
levlam
5188a5b5e7
Allow to set non-local filled backgrounds.
2021-06-09 19:08:47 +03:00
levlam
d10cc1eb77
Add and use BackgroundId::is_local.
2021-06-09 17:14:10 +03:00
levlam
c30ccd1e0d
Support removing Fill backgrounds from default list.
2021-06-08 01:10:19 +03:00
levlam
36bcbcb418
Simplify background unsaving.
2021-06-07 20:46:57 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
3e0e9f5291
Parse background parameters in searchBackground.
2021-05-26 20:25:37 +03:00
levlam
bb957644cf
Add td_api::backgroundFillFreeformGradient.
2021-05-21 01:49:59 +03:00
levlam
a6a4eb6616
Don't include SliceBuilder.h in logging.h.
2021-05-17 15:21:11 +03:00
Andrea Cavalli
b6f0df26bc
Fix null checks crash
2021-01-12 02:40:01 +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
levlam
82f0386e73
Move some functions from misc.h to algorithm.h.
2021-01-01 16:01:03 +03:00
levlam
52c1da0a70
Update copyright year.
2021-01-01 15:57:46 +03:00
Andrea Cavalli
c83fc13a60
Merge commit '1d9989cbd700492ffe636385d5578946f62139d9'
...
Conflicts:
td/telegram/ContactsManager.cpp
td/telegram/ContactsManager.h
td/telegram/MessagesDb.cpp
td/telegram/MessagesManager.cpp
2020-10-01 13:22:37 +02:00
levlam
e0adaebb91
Unify logging of request responses.
...
GitOrigin-RevId: ae4c0a3881a89aa235baa08c07ec97a914437d8c
2020-09-24 16:08:04 +03:00
levlam
cb3f390a92
Unify "log event" spelling.
...
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
205fa52f8d
Merge commit '44689f81ff8b9bc4583c1c889d8034c47f0c5270'
...
Conflicts:
td/telegram/DialogDb.cpp
td/telegram/MessagesManager.cpp
td/telegram/StickersManager.cpp
td/telegram/TdDb.cpp
td/telegram/WebPagesManager.cpp
2020-06-11 17:44:52 +02:00
e3bf0f63f0
Patches
2020-05-23 21:27:24 +02:00
levlam
b29a945b1a
Ignore SQLite key-value responses after close.
...
GitOrigin-RevId: a91a2dbbf8efcda91959aabfcaca964caa6fe3c3
2020-05-16 02:25:03 +03:00
levlam
bcc8dbc158
Use Global::is_expected_error whenever appropriate.
...
GitOrigin-RevId: aba8ee6e3dc1ab6e680a5ae10f6c3d217ab0a8dc
2020-03-31 00:35:58 +03:00
levlam
b8848a2ab4
Simplify NetQuery creation.
...
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
80c35676a2
Update copyright year.
...
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
051acb85af
Fix setting the same background.
...
GitOrigin-RevId: 2f1d147f32d66916683e1a18bf4734dd8ad70407
2019-12-23 01:29:19 +03:00
levlam
68a211a368
Add rotation_angle support to gradient background fill.
...
GitOrigin-RevId: ebe65367b2cad8777e6e87cf30815a1f9545da9a
2019-12-22 22:32:01 +03:00