Fix ChatReactions::is_allowed_reaction_type.

This commit is contained in:
levlam 2024-08-07 17:35:00 +03:00
parent 1bbed2c5bc
commit 7daa876d99

View File

@ -90,8 +90,8 @@ bool ChatReactions::is_allowed_reaction_type(const ReactionType &reaction_type)
if (allow_all_custom_ && reaction_type.is_custom_reaction()) { if (allow_all_custom_ && reaction_type.is_custom_reaction()) {
return true; return true;
} }
if (reaction_type.is_paid_reaction()) { if (reaction_type.is_paid_reaction() && paid_reactions_available_) {
return paid_reactions_available_; return true;
} }
return td::contains(reaction_types_, reaction_type); return td::contains(reaction_types_, reaction_type);
} }