diff options
| author | levlam <levlam@telegram.org> | 2024-08-07 17:35:00 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-08-07 17:35:00 +0300 |
| commit | 7daa876d992d90ed313ce1836ba1416c5acb879d (patch) | |
| tree | d2002bd303d7bb0de8b67af6ecd49b221409ed03 /td/telegram/ChatReactions.cpp | |
| parent | 1bbed2c5bc7d9824fab2fff00fa442562fb55944 (diff) | |
Fix ChatReactions::is_allowed_reaction_type.
Diffstat (limited to 'td/telegram/ChatReactions.cpp')
| -rw-r--r-- | td/telegram/ChatReactions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/ChatReactions.cpp b/td/telegram/ChatReactions.cpp index 644602e8d..788d06235 100644 --- a/td/telegram/ChatReactions.cpp +++ b/td/telegram/ChatReactions.cpp @@ -90,8 +90,8 @@ bool ChatReactions::is_allowed_reaction_type(const ReactionType &reaction_type) if (allow_all_custom_ && reaction_type.is_custom_reaction()) { return true; } - if (reaction_type.is_paid_reaction()) { - return paid_reactions_available_; + if (reaction_type.is_paid_reaction() && paid_reactions_available_) { + return true; } return td::contains(reaction_types_, reaction_type); } |
