Commit Graph

6924 Commits

Author SHA1 Message Date
levlam
96fc91e239 Disable custom animated emoji for bots. 2022-08-22 09:20:37 +03:00
levlam
551d42b9cf Fix compilation error. 2022-08-21 19:57:43 +03:00
levlam
1a8dbf8e4f Improve error logging. 2022-08-21 19:53:50 +03:00
levlam
869e9bd422 Avoid warning about wrong chat order for bots. 2022-08-21 12:46:06 +03:00
levlam
8c5833b009 Delete yet unsent message if receive messageEmpty for the sent message. 2022-08-21 10:08:09 +03:00
levlam
fe714b805b Drop all postponed updates before restoring PTS. 2022-08-21 08:22:58 +03:00
levlam
acbc2cebf4 Process request result in MessagesManager actor context. 2022-08-21 07:24:53 +03:00
levlam
092499a7c6 Use WaitFreeHashSet where appropriate. 2022-08-21 00:20:57 +03:00
levlam
e72d59ea78 Add warning for slow applying of postponed PTS updates. 2022-08-20 15:25:29 +03:00
levlam
4543c485a7 Optimize fix_url. 2022-08-20 13:44:55 +03:00
levlam
0649b7e2fa Add allocation-free fast path to is_common_tld. 2022-08-20 12:56:52 +03:00
levlam
fc9e878539 Optimize is_email_address. 2022-08-20 12:44:22 +03:00
levlam
4206246b0c Simplify match_url code. 2022-08-20 11:34:21 +03:00
levlam
0d2ddc2d56 Allow only domain symbols in user data after first dot to improve performance. 2022-08-19 21:01:39 +03:00
levlam
96cca84a60 Remove source from next_utf8_unsafe. 2022-08-19 16:37:44 +03:00
levlam
a8b3573a00 Always pass non-null pointer to next_utf8_unsafe. 2022-08-19 16:19:58 +03:00
levlam
73f945bd8b Support setting "is_location_visible" option before authorization. 2022-08-19 14:16:53 +03:00
levlam
f99327ca50 Add more CHECK logging. 2022-08-19 00:00:32 +03:00
levlam
515a9cfb48 Minor improvements. 2022-08-18 23:31:14 +03:00
levlam
939f4fa9fd Rename shared_config variables. 2022-08-18 21:51:29 +03:00
levlam
c5b258f097 Explicitly pass options to get_simple_config_*. 2022-08-18 21:45:29 +03:00
levlam
db5ad187d0 Add debug for "Lost promise" errors. 2022-08-18 21:32:36 +03:00
levlam
26bd2c71b3 Remove my_id from Global. 2022-08-18 20:21:40 +03:00
levlam
3de61c80f2 Postpone some getOption requests until initialization. 2022-08-18 19:54:04 +03:00
levlam
266e5d4b16 Fix setting "is_location_visible" option before authorization. 2022-08-18 19:38:30 +03:00
levlam
29b35f3698 Call on_option_updated only after Td is fully inited. 2022-08-18 19:12:15 +03:00
levlam
bece21cc38 Make OptionManager a plain class. 2022-08-18 18:52:59 +03:00
levlam
04b98aa385 Use OptionManager directly if possible. 2022-08-18 17:00:18 +03:00
levlam
fef6ef3c2a Remove conversion from legacy language pack option. 2022-08-18 16:03:58 +03:00
levlam
b772579af1 Fix "utc_time_offset" option updating on launch. 2022-08-18 15:59:32 +03:00
levlam
149d505781 Move option-related functions to OptionManager. 2022-08-18 14:54:57 +03:00
levlam
424e632f9f Combine reload_attach_menu_bots queries. 2022-08-18 13:39:24 +03:00
levlam
4ba7bf4a92 Use send_closure for some request processing. 2022-08-18 13:29:51 +03:00
levlam
552bde9fda Use query_promise in GetContactSignUpNotificationQuery. 2022-08-18 12:55:55 +03:00
levlam
0225f0cab7 Ensure that option values are fetched on launch. 2022-08-18 00:37:19 +03:00
levlam
12abea736f Init base LanguagePackManager fields in constuctor. 2022-08-17 22:49:05 +03:00
levlam
e897298527 Load animation search options on start and remove redundant fields. 2022-08-17 22:16:16 +03:00
levlam
3fe53c7d1d Remove saved_animations_limit binlog option. 2022-08-17 22:00:55 +03:00
levlam
9fddbf4ee8 Remove redundant parameters. 2022-08-17 21:40:03 +03:00
levlam
f9161dccc3 Remove "auth" internal option. 2022-08-17 20:01:03 +03:00
levlam
2ebeca31ca Don't use shared_config directly in Global.cpp. 2022-08-17 19:43:00 +03:00
levlam
3318ffdb20 Proxy all option-related requests through G. 2022-08-17 16:11:13 +03:00
levlam
9f2a6b5fd4 Improve includes. 2022-08-16 09:43:32 +03:00
levlam
febf458091 Move set_default_reaction to MessageReaction.h. 2022-08-15 22:47:02 +03:00
levlam
bbac7baed0 Add setUserSupportInfo. 2022-08-15 16:58:28 +03:00
levlam
f0a89c3dbe Remove process_input_caption in favor of get_formatted_text. 2022-08-15 16:26:51 +03:00
levlam
8b61255387 Add additional parameters to get_formatted_text. 2022-08-15 16:16:50 +03:00
levlam
61fb071b25 Use get_formatted_text in get_web_page_preview. 2022-08-15 15:59:16 +03:00
levlam
b1e43bfbd5 Pass FormattedText to get_first_url. 2022-08-15 15:55:48 +03:00
levlam
47c0f387de Add get_formatted_text function. 2022-08-15 15:37:17 +03:00