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
levlam
6de2763fac
Remove duplicate logging before net queries.
2021-11-08 16:41:16 +03:00
levlam
616b0e6d6f
Improve ResultHandler/NetActor td_ private field name.
2021-11-08 15:20:38 +03:00
levlam
5578ecc6b8
Remove NetQuery id from ResultHandler and NetActor.
2021-11-08 14:19:57 +03:00
Andrea Cavalli
9c9772868b
Merge remote-tracking branch 'td/master'
2021-11-05 16:11:03 +01:00
levlam
0c1e268706
Don't generate MASK for parsed True fields.
2021-11-01 21:53:23 +03:00
levlam
00a349656d
Unify td/telegram/include order.
2021-10-27 17:32:09 +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
328c5b57d2
Add Global::request_aborted_error.
2021-10-07 16:36:21 +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
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