Commit Graph

60 Commits

Author SHA1 Message Date
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
e5fbb33555 Remove all chosen reactions, exceeding reaction limit. 2022-09-14 17:55:02 +03:00
levlam
cef7ca17f3 Always show all reaction choosers in private chats. 2022-09-14 17:15:12 +03:00
levlam
c646e43e37 Minor improvements. 2022-09-14 16:31:47 +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
38fbd00e99 Add and use get_reactions_hash. 2022-09-12 21:55:30 +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
28d3d1ab37 Add MessageReactis::add_reaction/remove_reaction. 2022-09-09 17:43:21 +03:00
levlam
e0699944b3 Add is_custom_reaction. 2022-09-09 17:05:27 +03:00
levlam
55ec944266 Pass all chosen reactions to send_message_reaction. 2022-09-09 16:21:00 +03:00
levlam
4ae5b9a533 Consistently use is_active_reaction. 2022-09-08 21:04:23 +03:00
levlam
4fdac24cc5 Add setMessageReaction.update_recent_reactions. 2022-09-05 22:04:50 +03:00
levlam
e3da366e2b Fix chosen reaction detection. 2022-09-02 17:34:28 +03:00
levlam
71b7eaa4a5 Improve logging. 2022-09-02 17:04:09 +03:00
levlam
4e6046b9ec Treat all emoji reactions as non-premium. 2022-08-24 23:31:15 +03:00
levlam
43f91a9de5 Add td_api::reportMessageReactions. 2022-08-23 14:39:10 +03:00
levlam
c0f1a9850d Disallow emoji starting with # as reactions. 2022-08-22 21:51:55 +03:00
levlam
fa07382e5b Explicitly pass default_reaction to send_update_default_reaction_type. 2022-08-22 21:29:09 +03:00
levlam
ef4f0989b1 Update default reaction from other apps. 2022-08-22 15:44:38 +03:00
levlam
c2a62dbc09 Add updateDefaultReactionType. 2022-08-22 15:23:17 +03:00
levlam
2a2787b7ed Add td_api::setDefaultReactionType. 2022-08-16 23:08:36 +03:00
levlam
b14708f0f5 Support reactions with custom emoji. 2022-08-16 22:42:29 +03:00
levlam
bb2034ae36 Update layer to 145. 2022-08-08 23:00:06 +03:00
levlam
04b98aa385 Use OptionManager directly if possible. 2022-08-18 17:00:18 +03:00
levlam
3318ffdb20 Proxy all option-related requests through G. 2022-08-17 16:11:13 +03:00
levlam
febf458091 Move set_default_reaction to MessageReaction.h. 2022-08-15 22:47:02 +03:00
levlam
26fe0f73f9 Try to keep 3 other recent reaction choosers. 2022-08-07 15:28:55 +03:00
levlam
36c2ef9e62 Ensure that the current user is among recent choosers of the chosen reaction. 2022-04-27 22:13:05 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
c5908619c2 Reload reactions in new viewed messages. 2022-03-07 14:27:42 +03:00
levlam
786f2dc504 Use invoke after for reaction-related queries. 2022-02-16 18:36:55 +03:00
levlam
ec4069b96a Sync reactions after getMessageAddedReactions if needed. 2022-02-14 11:34:12 +03:00
levlam
0d79671f15 Add MessagesManager::update_message_reactions. 2022-02-12 14:15:14 +03:00
levlam
c88955a8b7 Load unknown messages to process updateMessageReaction. 2022-02-08 18:48:09 +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
b1b945e239 Minor fixes. 2022-01-31 15:56:44 +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
e5084491f6 Add Message.unread_reactions. 2022-01-28 17:10:17 +03:00
levlam
6ebb83a194 Improve class names and documentation. 2022-01-27 01:52:21 +03:00
levlam
fd4b9a5a79 Handle missing updateMessageReactions in response to getMessagesReactions as a message without reactions. 2022-01-26 20:06:27 +03:00
levlam
f9c6fb14f6 Relaod message reactions if failed to set reaction. 2022-01-26 18:48:46 +03:00
levlam
97e0288363 Check that reaction is among available reactions before set it locally. 2022-01-26 16:51:47 +03:00