Commit Graph

118 Commits

Author SHA1 Message Date
levlam
13c94c7731 Don't init BackgroundManager for bots. 2024-01-24 14:48:17 +03:00
levlam
978be7206f Use DialogManager::have_dialog_force. 2024-01-04 15:26:42 +03:00
levlam
b2fccc7d9c Move ContactsManager proxy methods to DialogManager. 2024-01-03 23:07:50 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
93aa765f44 Add td_api::backgroundTypeChatTheme for boosted chats. 2023-12-19 16:00:50 +03:00
levlam
b3ce27c4ea Add separate deleteDefaultBackground method. 2023-12-19 14:38:37 +03:00
levlam
325f56dfe0 Improve name of updateDefaultBackground update. 2023-12-19 14:21:46 +03:00
levlam
15132a398f Remove check in backgrounf parsing. 2023-12-22 16:48:16 +03:00
levlam
8ab0a152cd Just delete chat background if revert failed. 2023-12-01 11:56:30 +03:00
levlam
762c224c10 Add deleteChatBackground.restore_previous. 2023-12-01 01:06:54 +03:00
levlam
330088d9f8 Add separate td_api::deleteChatBackground method. 2023-12-01 00:20:11 +03:00
levlam
f05f2a67f1 Add BackgroundManager::get_background_dialog method. 2023-12-01 00:14:25 +03:00
levlam
1c8205d6de Add td_api::revertChatBackground. 2023-11-10 14:53:16 +03:00
levlam
aa7a0a6ee3 Allow to set chat background for both sides. 2023-11-10 14:40:14 +03:00
levlam
d20ed201b0 Update layer to 167. 2023-11-09 19:37:26 +03:00
levlam
ad193a389c Add FileManager::get_missing_file_parts. 2023-07-05 10:55:16 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
a8be92146d Add class DocumentsManager::Subtype. 2023-05-25 13:57:12 +03:00
levlam
58301570c6 Minor improvements. 2023-04-19 10:38:55 +03:00
levlam
50effcbaf4 Immediately delete chat background on removing it. 2023-04-13 20:10:44 +03:00
levlam
b4d6b68195 Replace dark_theme_brightness with dark_theme_dimming. 2023-04-12 00:59:53 +03:00
levlam
5df2f3c141 Add inputBackgroundPrevious. 2023-04-12 00:02:42 +03:00
levlam
b130306ce7 Add td_api::setChatBackground. 2023-04-11 17:46:55 +03:00
levlam
0ce6dc6834 Allow nullptr in BackgroundType::get_background_type. 2023-04-10 20:53:45 +03:00
levlam
00ed2f85b8 Support dark_theme_brightness for chat backgrounds. 2023-04-10 18:45:26 +03:00
levlam
a45d2de881 Update layer to 158. 2023-03-21 14:11:43 +03:00
levlam
d6faa001e2 Add Global::use_sqlite_pmc. 2023-03-14 01:41:04 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
69c85f0df8 Move is_background_name_local to BackgroundType. 2023-03-01 16:36:34 +03:00
levlam
5a39bb4952 Use error code returned by get_input_file_id. 2023-02-09 18:31:02 +03:00
levlam
d0500988ac Remove checks that status.is_error in ResultHandler::on_error. 2023-01-07 23:36:55 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
0b387a61ad Add source to dup_file_id. 2022-11-21 11:40:43 +03:00
levlam
f085e7eea3 Use request promise in setBackground. 2022-11-17 18:48:48 +03:00
levlam
eecec61fa9 Move get_background_url to LinkManager. 2022-10-18 22:52:47 +03:00
levlam
3318ffdb20 Proxy all option-related requests through G. 2022-08-17 16:11:13 +03:00
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