Commit Graph

81 Commits

Author SHA1 Message Date
levlam
d75791481f Improve FileView::get_main_file_id() method name. 2022-07-03 12:01:08 +03:00
levlam
1e417ea212 Minor fixes. 2022-06-02 16:19:16 +03:00
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03:00
levlam
05c0833525 Add PhotoFormat.h. 2022-04-09 23:21:07 +03:00
levlam
15f27455c5 Move other big classes inside FlatHashMap to unique_ptr. 2022-02-11 19:27:32 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03: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
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
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
328c5b57d2 Add Global::request_aborted_error. 2021-10-07 16:36:21 +03: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
levlam
6801eabb8d Add some FileView emptiness checks. 2021-09-16 16:58:30 +03:00
levlam
075d004b9f Replace getChatThemes with updateChatThemes. 2021-09-13 15:55:01 +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
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
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
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
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
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
levlam
8d0fa5ce77 Add td_api::thumbnail.
GitOrigin-RevId: b74fa62e415816ce63d3bd4415bd2bb8d6aa3f8b
2020-05-31 22:22:15 +03: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