diff options
| author | levlam <levlam@telegram.org> | 2022-09-09 17:05:27 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-09-09 17:05:27 +0300 |
| commit | e0699944b36a265ad8626fa50d24d0d53b7d95c2 (patch) | |
| tree | bd5925e9e78a817caf6e76e43700ea3296faba50 /td/telegram/ChatReactions.cpp | |
| parent | 89a1311c91ac394104bef5efb7dbad4d3d9c02c0 (diff) | |
Add is_custom_reaction.
Diffstat (limited to 'td/telegram/ChatReactions.cpp')
| -rw-r--r-- | td/telegram/ChatReactions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/ChatReactions.cpp b/td/telegram/ChatReactions.cpp index dc838d5b6..a3a6d6b64 100644 --- a/td/telegram/ChatReactions.cpp +++ b/td/telegram/ChatReactions.cpp @@ -73,7 +73,7 @@ ChatReactions ChatReactions::get_active_reactions(const FlatHashMap<string, size bool ChatReactions::is_allowed_reaction(const string &reaction) const { CHECK(!allow_all_); - if (allow_custom_ && reaction[0] == '#') { + if (allow_custom_ && is_custom_reaction(reaction)) { return true; } return td::contains(reactions_, reaction); |
