Commit Graph

785 Commits

Author SHA1 Message Date
levlam
408aa95f76 Remove preloading of users from database before adding them from binlog. It makes no sense, because users will be rewritten by binlog data anyway. 2022-02-22 23:06:37 +03:00
levlam
38fe0cc6fc Preload users from database before adding them from binlog. 2022-02-17 16:09:17 +03:00
levlam
e6aed3b99e Preload contact user to avoid loading all contacts. 2022-02-17 15:14:15 +03:00
levlam
9c62385b02 Don't load contacts after receiving a non-contact. It will be saved to database anyway and deleted from the saved list of contacts after it is loaded if appropriate. 2022-02-16 21:58:57 +03:00
levlam
0d79671f15 Add MessagesManager::update_message_reactions. 2022-02-12 14:15:14 +03:00
levlam
d5d4f4acf7 Fix remaining FlatHashMap usages. 2022-02-10 18:03:03 +03:00
levlam
f5d8e4de83 Use table_remove_if. 2022-02-10 12:23:52 +03:00
levlam
9e6d106585 Minor improvements. 2022-02-10 11:55:32 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03:00
levlam
b4fda2d45a Use FlatHashMap in mtproto and td_json_client. 2022-02-09 16:05:53 +03:00
levlam
b62ced6d95 Minor improvements. 2022-02-08 00:42:53 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
levlam
8b92e8f978 Optimize checked insert to std::map. 2022-02-03 16:24:09 +03:00
Arseny Smirnov
ad38f712e8 SequenceDispatcher: hide usage into NetQueryDispatcher 2022-02-01 18:51:36 +03:00
levlam
739d2b292d Add MessageReactions. 2022-01-20 22:54:34 +03:00
levlam
305f2e87e1 Improve logging. 2022-01-19 15:00:11 +03:00
levlam
3becacf304 Add chat.available_reactions and updateChatAvailableReactions. 2022-01-04 16:33:57 +03:00
levlam
14637caa64 Improve condition in get_user. 2022-01-01 12:21:13 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
62d4e339de Fix ContactsManager::get_user with min-user for bots. 2021-12-31 16:33:46 +03:00
levlam
d3e1385b8b Add some debug logging. 2021-12-31 16:21:03 +03:00
levlam
feffe4153d Fix ContactsManager::get_user. 2021-12-30 17:39:42 +03:00
levlam
2027819297 Fix ContactsManager::get_input_user. 2021-12-30 15:28:10 +03:00
levlam
ff6615e734 Fix some misprints. 2021-12-23 14:18:32 +03:00
levlam
160ab905f1 Fix handling of min-channels in recent repliers. 2021-12-22 20:15:18 +03:00
levlam
1fd2e3b629 Return information about min-channels. 2021-12-22 16:48:23 +03:00
levlam
758a391e55 Store title and photo of min-channels. 2021-12-22 16:09:34 +03:00
levlam
4e29d0e232 Rename message_ttl_setting to message_ttl. 2021-12-21 14:06:15 +03:00
levlam
3ff9723722 Reload channel full without delay after membership change. 2021-12-21 13:25:11 +03:00
levlam
29bdedb1d0 Reload ChannelFull on join/leave as creator. 2021-12-21 12:58:22 +03:00
levlam
ab89543894 Don't reload ChannelFull in get_channel_participants. 2021-12-20 20:45:35 +03:00
levlam
93464ccd27 Use request promise in getChatAdministrators. 2021-12-18 22:44:25 +03:00
levlam
b060536ae3 Return Result<...> from get_input_user. 2021-12-16 22:46:03 +03:00
levlam
c743f540c5 Log received userFull. 2021-12-16 19:30:38 +03:00
levlam
871f91b896 Add check for administrator rights in reportSupergroupSpam. 2021-12-15 21:45:30 +03:00
levlam
86c4bac69d Allow to simultaneously report supergroup messages from different senders. 2021-12-15 21:39:48 +03:00
levlam
fe6c61f2ea Workaround bogus C4753 MSVC warning. 2021-12-15 20:36:23 +03:00
levlam
9d968d835d Ignore sign_messages flag from min-channels. 2021-12-13 16:10:58 +03:00
levlam
0a01b97921 Improve conditions for calls to on_get_channel_error. 2021-12-10 16:25:14 +03:00
levlam
5a76413990 Minor improvements. 2021-12-10 00:07:59 +03:00
levlam
68212198a0 Improve error message. 2021-12-09 17:49:19 +03:00
levlam
129601b6c1 Add "channel_bot_user_id" option. 2021-12-09 16:36:27 +03:00
levlam
831ca4b975 Rename allow_saving_content to has_private_content. 2021-12-06 21:43:55 +03:00
levlam
ecc8889cac Reload created public dialogs after local list changes. 2021-12-03 20:22:49 +03:00
levlam
fb9bb3cd69 Save and load lists of created public channels. 2021-12-03 20:10:30 +03:00
levlam
a33027a9c1 Preload createdPublicChannels after getDifference. 2021-12-03 16:36:27 +03:00
levlam
03baffcd1f Combine GetCreatedPublicChannels queries. 2021-12-03 15:40:39 +03:00
levlam
93af4377b7 Store created public broadcasts in MessagesManager. 2021-12-03 12:28:33 +03:00
levlam
cffe34e5b2 Update created public channels instead of dropping them when ownership is changed. 2021-12-02 18:10:14 +03:00
levlam
b3bc208d63 Update created public channels after has_location is changed. 2021-12-02 17:12:33 +03:00