Commit Graph

1352 Commits

Author SHA1 Message Date
levlam
0e032795b6 Add by_my_privacy_settings flag to td_api::UserStatus. 2024-01-09 12:34:02 +03:00
levlam
b171fbe373 Update layer to 172. 2024-01-09 12:09:10 +03:00
levlam
0823ee492e Add enum ReactionListType. 2024-01-18 20:53:43 +03:00
levlam
a262f0a5f7 Avoid some initialization for bots. 2024-01-24 15:24:16 +03:00
levlam
f24bc41596 Move setting of default option values from ContactsManager to OptionManager. 2024-01-24 14:59:09 +03:00
levlam
cd3cc873f0 Fix usage of unsupported chat identifier. 2024-01-23 19:05:39 +03:00
levlam
c2277a1044 Add source to get_user_full_force. 2024-01-15 14:12:00 +03:00
levlam
d029eff807 Minor improvements. 2024-01-11 00:12:16 +03:00
levlam
509908edda Don't register users/channels in unknown channels. 2024-01-10 20:07:56 +03:00
levlam
1fa64892e1 Don't count non-member creator in administrator count. 2024-01-10 17:49:17 +03:00
levlam
4d51b2c875 Move create_new_chat/create_new_channel to ContactsManager. 2024-01-10 17:09:09 +03:00
levlam
a409af0973 Move migrate_dialog_to_megagroup to ContactsManager. 2024-01-10 15:57:19 +03:00
levlam
1bc8e90c10 Move create_new_secret_chat to ContactsManager. 2024-01-10 15:20:16 +03:00
levlam
7b6ce8b822 Move reload_dialog_info to DialogManager. 2024-01-08 19:20:22 +03:00
levlam
9a90089879 Move check_dialog_username to DialogManager. 2024-01-08 19:14:41 +03:00
levlam
466c841b4e Move send_update_add_chat_members_privacy_forbidden to DialogParticipantManager. 2024-01-08 18:57:44 +03:00
levlam
127b7ad086 Add DialogParticipantManager::speculative_add_channel_user. 2024-01-08 18:50:18 +03:00
levlam
b1d72276a7 Move set_channel_participant_status and similar methods to DialogParticipantManager. 2024-01-08 18:44:13 +03:00
levlam
9660a7f2b1 Move set_dialog_participant_status and similar methods to DialogParticipantManager. 2024-01-08 18:15:21 +03:00
levlam
50b5a6e9bf Move channel participant cache to DialogParticipantManager. 2024-01-08 18:03:04 +03:00
levlam
bba173ea7d Move get_channel_participant to DialogParticipantManager. 2024-01-08 17:45:04 +03:00
levlam
f8565154a1 Move get_dialog_participant to DialogParticipantManager. 2024-01-08 17:35:24 +03:00
levlam
f1a4579e67 Move bot chat member updates to DialogParticipantManager. 2024-01-08 17:27:32 +03:00
levlam
82e59914cd Minor improvements. 2024-01-08 15:42:21 +03:00
levlam
d832d5a70f Move chat administrators to DialogParticipantManager. 2024-01-08 15:23:16 +03:00
levlam
d1251e47a6 Move chat join request processing to DialogParticipantManager. 2024-01-08 14:36:18 +03:00
levlam
b579fcd3e0 Rename DialogOnlineMemberManager to DialogParticipantManager. 2024-01-08 14:22:44 +03:00
levlam
e4c816d33c Move methods for chat invite link management to DialogInviteLinkManager. 2024-01-08 14:09:58 +03:00
levlam
5a1b4b8d71 Move DialogAccessByInviteLink to DialogInviteLinkManager. 2024-01-08 13:40:28 +03:00
levlam
409778b760 Move check/join by chat invite link to DialogInviteLinkManager. 2024-01-08 13:25:31 +03:00
levlam
90b8acff67 Add and use BotCommands::update_all_bot_commands. 2024-01-08 01:44:58 +03:00
levlam
b4ac2653cd Move delete_dialog to DialogManager. 2024-01-08 01:27:49 +03:00
levlam
a2c6f4aa7c Move resolved usernames to DialogManager. 2024-01-07 23:45:33 +03:00
levlam
cb013c999a Don't keep restriction reasons for bots. 2024-01-05 18:24:35 +03:00
levlam
99a6c04dd3 Move online_member_dialogs out of User. 2024-01-05 12:33:53 +03:00
levlam
c0a0f7de07 Move on_dialog_info_full_invalidated to DialogManager. 2024-01-04 19:52:31 +03:00
levlam
249598a711 Move get_common_dialogs to CommonDialogManager. 2024-01-04 19:30:58 +03:00
levlam
3003679192 Move online member count to DialogOnlineMemberManager. 2024-01-04 18:30:12 +03:00
levlam
32898dbe88 Move get_chat_ids_object and get_chats_object to DialogManager. 2024-01-04 16:13:20 +03:00
levlam
eb5a37e927 Add DialogManager::force_create_dialog. 2024-01-04 15:38:01 +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
571fbd68aa Add td_api::openChatSimilarChat. 2023-12-26 21:24:04 +03:00
levlam
c4efc0e2e0 Add td_api::setChatEmojiStatus. 2023-12-25 14:49:22 +03:00
levlam
b1db06d627 Fix update of channel emoji status. 2023-12-25 03:01:45 +03:00
levlam
40b585d74f Support channel emoji status. 2023-12-21 21:05:42 +03:00
levlam
7f6bdcd42c Add channel.boost_level. 2023-12-21 20:08:30 +03:00
levlam
5cb6ca27cc Add Chat.emoji_status. 2023-12-21 20:01:26 +03:00
levlam
fabcce43c6 Update channel background from ChannelFull. 2023-12-21 19:08:06 +03:00
levlam
9171588824 Add class PeerColor. 2023-12-18 15:51:11 +03:00
levlam
1393033fdf Add td_api::setChatProfileAccentColor. 2023-12-17 23:34:58 +03:00
levlam
d6423f60be Remove separate UpdateProfileColorQuery. 2023-12-17 23:12:03 +03:00
levlam
7ceccad807 Support profile color and custom emoji in chat. 2023-12-17 22:54:55 +03:00
levlam
16d0c3c61b Use combined updateChatAccentColors. 2023-12-16 11:49:26 +03:00
levlam
c6ce44815e Update layer to 169. 2023-12-05 12:30:12 +03:00
levlam
53ee8caf37 Simplify QTS update processing. 2023-12-14 23:27:46 +03:00
levlam
542271a1fd Don't save get_id() to a used-once variable before switch. 2023-12-12 23:20:41 +03:00
levlam
d8eab25e82 Allow to use addChatMembers with one user in basic groups. 2023-12-08 14:30:01 +03:00
levlam
3f00bebf63 Add missing checks fpr database existence. 2023-12-03 13:18:33 +03:00
levlam
da1f23a6f9 Fix RecommendedDialogs::parse. 2023-11-30 19:37:48 +03:00
levlam
9096e646b8 Minor improvements. 2023-11-30 18:26:33 +03:00
levlam
238c0e901f Load recommended channels from database. 2023-11-29 19:35:27 +03:00
levlam
da0d999c52 Add td_api::getSimilarChatCount. 2023-11-29 15:31:33 +03:00
levlam
85b06f9614 Add ContactsManager::finish_load_channel_recommendations_queries. 2023-11-29 15:11:55 +03:00
levlam
fa91aeb065 Add ContactsManager::fail_load_channel_recommendations_queries. 2023-11-29 15:04:21 +03:00
levlam
c9e83daec6 Allow to reset accent_color_id to default. 2023-11-28 16:17:51 +03:00
levlam
9fbdba456a Add td_api::setProfileAccentColor. 2023-11-28 16:12:21 +03:00
levlam
45ca900759 Add user.profile_accent_color_id/profile_background_custom_emoji_id. 2023-11-28 15:45:39 +03:00
levlam
a32b11de98 Delete similar chats from database when losing read access to the chat. 2023-11-25 21:44:54 +03:00
levlam
5b6c024aaa Support partial lists for recommended channels. 2023-11-24 13:53:10 +03:00
levlam
18377ae3e7 Add userFullInfo.set_chat_background. 2023-11-23 23:08:53 +03:00
levlam
b55af58a69 Cache channel recommendations in database. 2023-11-21 14:13:06 +03:00
levlam
cf882ccc77 Add ContactsManager::are_suitable_recommended_dialogs. 2023-11-21 13:39:32 +03:00
levlam
21222604d0 Reload recommended chats from time to time. 2023-11-20 23:12:42 +03:00
levlam
b6bb02baad Add td_api::getSimilarChats. 2023-11-20 22:03:21 +03:00
levlam
a689c8df56 Add Story.can_get_statistics. 2023-11-17 14:58:51 +03:00
levlam
3261d9d72c Store copy of Channel.is_forum in Dialog. 2023-11-16 15:04:57 +03:00
levlam
f13dde54a2 Add Chat.view_as_topics. 2023-11-16 13:59:32 +03:00
levlam
d20ed201b0 Update layer to 167. 2023-11-09 19:37:26 +03:00
levlam
a84e46048d Improve ConnectionState documentation. 2023-11-25 23:54:43 +03:00
levlam
f03ffe1d31 Fix singular usages of "statistics". 2023-11-25 23:33:09 +03:00
levlam
e914500eff Remove stranded assignments. 2023-11-16 15:14:04 +03:00
levlam
28af2429fb Use user_emoji_status_timeout_ only if last_sent_emoji_status is changed. 2023-11-13 15:16:16 +03:00
levlam
2a50068d7e Prolong username cache only for bot usernames for bots. 2023-11-13 14:05:05 +03:00
levlam
c6d9b8f160 Initialize User/Chat flags first. 2023-11-13 13:44:15 +03:00
levlam
88c05ace2c Compare only identifiers for pending profile photos. 2023-11-13 13:19:58 +03:00
levlam
55bd922fed Use less error-prone timeout time for channel unban. 2023-11-13 00:11:08 +03:00
levlam
ca3173e1e1 Don't reload chat/channel after receiving them for the first time. 2023-11-09 00:15:19 +03:00
levlam
7039272ae8 Add source to reload_user/chat/channel. 2023-11-08 23:48:27 +03:00
levlam
49a75ad084 Add source to QueryMerger::add_query. 2023-11-08 23:22:18 +03:00
levlam
776e992c45 Fix calls to on_update_channel_default_permissions. 2023-11-08 23:16:30 +03:00
levlam
a7c5b80b6d Use QueryMerger for getMe queries to combine them. 2023-11-08 17:25:41 +03:00
levlam
3d163e8fb2 Preload self user to process updateBotStopped. 2023-11-08 17:04:51 +03:00
levlam
adc81fcea6 Fallback to default accent color for the chat. 2023-11-02 22:32:59 +03:00
levlam
00a6167952 Never send unknown accent color identifiers to the app. 2023-11-02 22:11:54 +03:00
levlam
d5d069416e Apply restrictions in channel chats. 2023-10-31 13:54:22 +03:00
levlam
43e210dbc8 Support AccentColor in MinChannel. 2023-10-20 12:25:58 +03:00
levlam
21ef7d0f6c Disallow restricted member status in channels. 2023-10-19 22:37:44 +03:00
levlam
edc3e4c18a Add chatInviteLinkInfo.accent_color_id_. 2023-10-19 15:40:55 +03:00