Commit Graph

2217 Commits

Author SHA1 Message Date
levlam
0d79671f15 Add MessagesManager::update_message_reactions. 2022-02-12 14:15:14 +03:00
levlam
3d8e5e00e4 Allow arbitrary reaction order in setChatAvailableReactions. 2022-02-10 20:35:42 +03:00
levlam
d5d4f4acf7 Fix remaining FlatHashMap usages. 2022-02-10 18:03:03 +03:00
levlam
c88955a8b7 Load unknown messages to process updateMessageReaction. 2022-02-08 18:48:09 +03:00
levlam
367a0101d2 Send updateChatUnreadReactionCount if can't sent updateMessageUnreadReactions. 2022-02-08 14:56:25 +03:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +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
77060757eb Improve ordering of all message send requests. 2022-02-06 00:56:19 +03:00
levlam
b845766bd1 Add class ChainId. 2022-02-05 23:28:43 +03:00
levlam
17fb8ff6fc Replace SendSecretMessageActor with a function. 2022-02-04 16:25:37 +03:00
levlam
6e82e51243 Remove all NetActorOnce usages. 2022-02-04 00:46:10 +03:00
levlam
649f2b85f5 Rename chains to chain_ids in NetQuery. 2022-02-03 22:32:47 +03:00
levlam
8b92e8f978 Optimize checked insert to std::map. 2022-02-03 16:24:09 +03:00
levlam
877b5fce00 Allow to set again the same big reaction. 2022-02-03 13:47:18 +03:00
levlam
02b99d0fbf Remove includes of SequenceDispatcher.h from headers. 2022-02-01 19:34:14 +03:00
Arseny Smirnov
ad38f712e8 SequenceDispatcher: hide usage into NetQueryDispatcher 2022-02-01 18:51:36 +03:00
levlam
c783115974 Fix warnings. 2022-01-31 22:00:00 +03:00
levlam
ee3c674df1 Fix setChatAvailableReactions. 2022-01-31 18:59:39 +03:00
levlam
b1b945e239 Minor fixes. 2022-01-31 15:56:44 +03:00
levlam
ccd450789b Fix message index mask. 2022-01-31 04:04:20 +03:00
levlam
24f6ba4faf Improve updates order and logging in update_message. 2022-01-31 03:27:29 +03:00
levlam
462797b48a Disable local can_get_added_reactions in private chats. 2022-01-30 13:48:32 +03:00
levlam
fe4232ca79 Add MessageReactions logging. 2022-01-30 13:24:27 +03:00
levlam
abb2c1a105 Ignore reaction updates while setting reaction. 2022-01-30 12:55:27 +03:00
levlam
3150b3d491 Add readAllChatReactions. 2022-01-30 12:37:24 +03:00
levlam
3739c5b92f Replace translateMessage with translateText. 2022-01-29 23:43:57 +03:00
levlam
41a5248169 Read unread reactions. 2022-01-28 20:27:39 +03:00
levlam
1cf2a9e9c9 Check that unread_reaction_count was changed before setting it. 2022-01-28 19:59:18 +03:00
levlam
5098dac338 Add and use has_unread_message_reactions. 2022-01-28 19:57:50 +03:00
levlam
fd8d15e2d2 Add td_api::searchMessagesFilterUnreadReaction. 2022-01-28 19:12:33 +03:00
levlam
71a8abb92d Implement Chat.unread_reaction_count. 2022-01-28 18:39:13 +03:00
levlam
e5084491f6 Add Message.unread_reactions. 2022-01-28 17:10:17 +03:00
Arseny Smirnov
452f60be0b SequenceDispatcher: support multiple chains 2022-01-28 17:06:54 +03:00
Arseny Smirnov
355c2950ad ChainScheduler - new implementation of SequenceDispatcher 2022-01-28 15:50:59 +03:00
levlam
4c98811b03 Reload linked chat full info when a chat is opened. 2022-01-27 18:53:03 +03:00
levlam
c0a2c0de8b Use get_message_active_reactions instead of get_dialog_active_reactions if appropriate. 2022-01-27 18:17:29 +03:00
levlam
e9a155a2a6 Fix MessagesManager::get_message_available_reactions for private chats. 2022-01-27 17:00:44 +03:00
levlam
274d0babb8 Add Message.can_get_added_reactions. 2022-01-27 15:58:20 +03:00
levlam
1fdfd036bb Use get_dialog_active_reactions if appropriate. 2022-01-27 15:25:41 +03:00
levlam
f00e7aae59 Fix empty reaction in setMessageReaction. 2022-01-27 14:19:51 +03:00
levlam
f9c6fb14f6 Relaod message reactions if failed to set reaction. 2022-01-26 18:48:46 +03:00
levlam
262d63564d Fix misprint. 2022-01-26 17:25:55 +03:00
levlam
97e0288363 Check that reaction is among available reactions before set it locally. 2022-01-26 16:51:47 +03:00
levlam
ba5c326ba8 Support sending big reactions. 2022-01-26 16:41:41 +03:00
levlam
1901eafe8a Add td_api::getMessageAvailableReactions. 2022-01-26 15:25:03 +03:00
levlam
6a288e2516 Hide reactions if they are disabled in the chat. 2022-01-26 13:49:17 +03:00
levlam
5edc92dd72 Update recent reaction choosers in setMessageReaction. 2022-01-26 12:50:41 +03:00
levlam
bad018bc32 Sort message reactions by the number of choosers. 2022-01-26 12:01:14 +03:00
levlam
9eb3a9a403 Remove chosen reaction when it is again. 2022-01-26 11:02:20 +03:00
levlam
4c4b609448 Reload full dialog info if failed to set available reactions. 2022-01-24 17:51:39 +03:00
levlam
ce19ad822b Add td_api::setMessageReaction. 2022-01-21 20:39:55 +03:00
levlam
05a069d221 Use MessageSender for recent reaction choosers. 2022-01-21 13:15:27 +03:00
levlam
7c4d333a77 Support updateMessageReactions. 2022-01-21 11:53:18 +03:00
levlam
739d2b292d Add MessageReactions. 2022-01-20 22:54:34 +03:00
levlam
4a2cace483 Keep only active reactions. 2022-01-19 20:35:49 +03:00
levlam
5f14c85a33 Send updateChatAvailableReactions updates when the list of active reactions changes. 2022-01-19 20:04:59 +03:00
levlam
facb8f754a Move list of active reactions to MessagesManager. 2022-01-19 18:59:48 +03:00
levlam
4e657b73ab Return all reactions as available in private chats. 2022-01-19 18:10:16 +03:00
levlam
06a67030a0 Use reload_dialog_info_full instead of get_dialog_info_full to guarantee that the data will be reloaded. 2022-01-19 14:37:07 +03:00
levlam
1441de578b Don't treat messages sent to secret chats as copied, because media files can be needed to be reuploaded anyway. Relative order of forwarded to secret chats media will be kept now, but ordering with forwarded text messages can still be broken. 2022-01-17 16:07:54 +03:00
levlam
8339a5818e Add td_api::translateMessage. 2022-01-14 22:28:28 +03:00
levlam
7974571615 Add more close_flag checks. 2022-01-13 17:28:10 +03:00
levlam
e89b3eeb9b Improve log messages. 2022-01-10 16:18:54 +03:00
levlam
b0ad4e5e62 Add td_api::setChatAvailableReactions. 2022-01-05 16:23:35 +03:00
levlam
3becacf304 Add chat.available_reactions and updateChatAvailableReactions. 2022-01-04 16:33:57 +03:00
KnorpelSenf
789b9c0a55 Fix much typos 2022-01-25 16:07:36 +03:00
levlam
fa8feefed7 Reduce total timeout limit to 2 for messages.setTyping. 2022-01-03 08:57:11 +03:00
levlam
c075ad7b00 Don't keep setTyping query reference for bots. 2022-01-03 08:01:26 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
ed766a4d2f Add flag messageSendOptions.protect_content. 2021-12-28 18:19:19 +03:00
levlam
20a460aeb3 Update layer to 136. 2021-12-28 17:19:18 +03:00
levlam
a81ab8abba Remove viewSponsoredMessage in favor of viewMessages. 2021-12-27 18:17:02 +03:00
levlam
aca4cd3b3f Ignore invalid last_database_server_dialog_date_ instead of trying to repair it. 2021-12-25 02:10:06 +03:00
levlam
b24c188ac0 Drop definitely incorrect folder.last_database_server_dialog_date_. 2021-12-24 23:18:40 +03:00
levlam
9cf4851c5b Ignore dialog dates with 0 date. 2021-12-24 22:59:05 +03:00
levlam
e71f9f6d75 Remove unneeded includes. 2021-12-22 21:07:42 +03:00
levlam
9221df532c Move MinChannel and MessageReplyInfo storers to hpp. 2021-12-22 20:29:54 +03:00
levlam
160ab905f1 Fix handling of min-channels in recent repliers. 2021-12-22 20:15:18 +03:00
levlam
7b84f42e87 Ensure that is_channel_post is false for non-broadcast messages. 2021-12-22 14:43:34 +03:00
levlam
d6df315769 Avoid new clang warning bitwise-instead-of-logical. 2021-12-21 16:59:16 +03:00
levlam
cbc6d25a44 Replace user_id with member_id in chatEventLog. 2021-12-21 14:53:22 +03:00
levlam
4e29d0e232 Rename message_ttl_setting to message_ttl. 2021-12-21 14:06:15 +03:00
levlam
81cebe39eb Improve naming of selected message sender in a chat. 2021-12-21 13:49:26 +03:00
levlam
ae91e885a1 Improve logging. 2021-12-21 03:26:07 +03:00
levlam
27a42b88c8 Save need_drop_default_send_message_as_dialog_id between restarts. 2021-12-20 22:54:20 +03:00
levlam
40c74a5d0a Suppress expected warning. 2021-12-20 20:55:47 +03:00
levlam
3f28ce86d6 Postpone drop of default message sender until the chat is opened. 2021-12-20 20:23:26 +03:00
levlam
2b9a5741b2 Ensure that there are at most 3 recent pending join requests. 2021-12-20 15:42:28 +03:00
levlam
0ab05735c0 Silence expected warnings. 2021-12-18 23:15:06 +03:00
levlam
b060536ae3 Return Result<...> from get_input_user. 2021-12-16 22:46:03 +03:00
levlam
745ecb1826 Expect no access to a chat only if this is not a private chat. 2021-12-16 17:45:52 +03:00
levlam
fe6c61f2ea Workaround bogus C4753 MSVC warning. 2021-12-15 20:36:23 +03:00
levlam
fdcb109870 Fix warning. 2021-12-14 13:52:51 +03:00
levlam
2832f7a527 Return available message senders in the order of decreasing member count. 2021-12-13 21:13:17 +03:00
levlam
9102a20665 Unload messages more often. 2021-12-13 15:32:46 +03:00
levlam
c510c4602c Skip recently sent messages in find_unloadable_messages. 2021-12-13 15:20:09 +03:00
levlam
9a4b932f17 Fix setChatDefaultMessageSender in private chats. 2021-12-13 14:50:56 +03:00
levlam
6bd7e04875 Ensure that online member count is reasonable. 2021-12-10 17:30:38 +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