Commit Graph

1245 Commits

Author SHA1 Message Date
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
levlam
f78bc2ae32 Add td_api::setChatAccentColor. 2023-10-18 19:43:14 +03:00
levlam
28bdceaaef Add td_api::setAccentColor. 2023-10-18 17:56:45 +03:00
levlam
372f505d71 Support optional accent color. 2023-10-18 16:23:04 +03:00
levlam
7df8a8f3d0 Support user/chat.background_custom_emoji_id. 2023-10-18 15:59:25 +03:00
levlam
364b058508 Ignore invalid accent colors. 2023-10-18 13:33:44 +03:00
levlam
1b49787c88 Support accent color in channels. 2023-10-17 15:20:50 +03:00
levlam
dd6fd86637 Add chat.accentColorId. 2023-10-17 15:09:57 +03:00