Commit Graph

2435 Commits

Author SHA1 Message Date
levlam
445cd4118d Improve 'always be' spelling. 2022-10-09 19:18:33 +03:00
levlam
7f5f6e41ad Minor improvements. 2022-10-09 19:00:14 +03:00
levlam
5a29dcd337 Avoid redundant usages of Status::error(). 2022-10-09 14:15:54 +03:00
levlam
d4bf6f9239 Send updateMessageSendFailed about being sent messages on closing if there is no message database. 2022-10-07 01:38:39 +03:00
levlam
b1f2e553cb Explicitly fail some promises stored in MessagesManager. 2022-10-07 01:28:18 +03:00
levlam
09cffa693a Improve source for telegram_api::updates. 2022-10-06 18:21:25 +03:00
levlam
7ff1ec04b1 Improve log and error messages. 2022-10-05 21:29:05 +03:00
levlam
8d1ee490ad Update response of getChatAvailableMessageSenders. 2022-10-04 17:53:56 +03:00
levlam
af5ddbfa15 Use WaitFreeHashMap for resolved_usernames. 2022-10-04 14:53:46 +03:00
levlam
91ba17c47b Fix read_date usage. 2022-10-04 14:18:57 +03:00
levlam
882b08f935 Support empty filter in getChatMessagePosition. 2022-10-03 20:55:15 +03:00
levlam
08ce44a194 Avoid message type checks in treap_insert/treap_find. 2022-10-02 00:36:11 +03:00
levlam
1f7258f697 Add getChatMessagePosition. 2022-09-30 20:04:21 +03:00
levlam
92f9f8bdd0 Support extended media polling. 2022-09-24 22:17:17 +03:00
levlam
7f353cd064 Support telegram_api::updateMessageExtendedMedia. 2022-09-23 12:07:07 +03:00
levlam
e9b181ec42 Support ExtendedMedia in MessageContent. 2022-09-22 18:05:58 +03:00
levlam
798f4fdb2f Add MessageReactions::add_min_channels. 2022-09-24 21:09:07 +03:00
levlam
375446ac88 Add MessageReactions::add_dependencies. 2022-09-24 21:07:35 +03:00
levlam
da00ea6f86 Add MessageReactions::get_message_reactions_object. 2022-09-24 20:58:54 +03:00
levlam
c9f7603ad7 Add MessageReactions::are_consistent_with_list. 2022-09-24 20:15:38 +03:00
levlam
831f0bead3 Send updateMessageContent about edited messages. 2022-09-21 18:02:28 +03:00
levlam
23fe3994bf Don't unload messages from the last media album. 2022-09-21 17:44:25 +03:00
levlam
e9ccb43ccd Use const Message * earlier in add_message_to_dialog. 2022-09-21 17:30:03 +03:00
levlam
097f3d42e1 Fix error code in on_upload_error/on_download_error. 2022-09-20 02:02:28 +03:00
levlam
06e1ebf809 Add check just in case. 2022-09-19 16:34:28 +03:00
levlam
b9bd024969 Update message notifications after external changes of message content. 2022-09-19 16:26:56 +03:00
levlam
bb6fc999f8 Add on_message_notification_changed function. 2022-09-19 16:19:59 +03:00
levlam
618bface99 Save voice message to database when it is recognized. 2022-09-19 11:15:13 +03:00
levlam
8d0cb5b82d Return is_content_changed from update_message_content. 2022-09-19 01:12:20 +03:00
levlam
5cf248ae01 Call on_message_changed after send_update_message_content. 2022-09-19 01:05:23 +03:00
levlam
51403c883c Avoid usage of send_update_message_content with dialog_id. 2022-09-19 00:29:31 +03:00
levlam
91c54cc748 Move send_update_message_content out of update_message_content. 2022-09-19 00:24:15 +03:00
levlam
cef7ca17f3 Always show all reaction choosers in private chats. 2022-09-14 17:15:12 +03:00
levlam
534f17e784 Randomize delays between failed getChannelDifference. 2022-09-14 16:41:59 +03:00
levlam
124b0dee6c Ensure that custom reactions aren't added twice. 2022-09-13 19:39:35 +03:00
levlam
30b961aebf Sort reactions returned in getMessageAvailableReactions. 2022-09-13 19:19:35 +03:00
levlam
5213561096 Make non-const MessageReaction functions private. 2022-09-13 15:35:18 +03:00
levlam
8e5dccbdb5 Fix updating of active reactions in MessagesManager. 2022-09-12 21:39:23 +03:00
levlam
999326d56a Locally add reaction to recent. 2022-09-12 20:17:14 +03:00
levlam
f119e867df Update chosen reaction order when reactions are added or removed. 2022-09-11 15:10:56 +03:00
levlam
2ee994aed1 Add MessageReactions::get_chosen_reactions. 2022-09-11 14:06:01 +03:00
levlam
e07ab8e71a Save chosen reaction order. 2022-09-11 13:35:25 +03:00
levlam
ce9175a00b Always use "must be non-empty". 2022-09-10 22:48:34 +03:00
levlam
345c930aa7 Explicitly disallow removal of an empty reaction. 2022-09-09 19:42:14 +03:00
levlam
52fbb073fe Fix reaction updating. 2022-09-09 19:42:02 +03:00
levlam
6fb097dfe0 Return only reactions that can be added in getMessageAvailableReactions. 2022-09-09 18:15:03 +03:00
levlam
28d3d1ab37 Add MessageReactis::add_reaction/remove_reaction. 2022-09-09 17:43:21 +03:00
levlam
89a1311c91 Add ChatReactions::is_allowed_reaction. 2022-09-09 16:34:14 +03:00
levlam
a223067cd1 Add availableReactions.allow_custom_emoji. 2022-09-09 16:28:51 +03:00
levlam
55ec944266 Pass all chosen reactions to send_message_reaction. 2022-09-09 16:21:00 +03:00