diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 17e9b754f..5518bb2d3 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -23873,7 +23873,7 @@ Result> MessagesManager::get_mess } ChatReactions MessagesManager::get_message_available_reactions(const Dialog *d, const Message *m, - bool dissalow_custom_for_non_premium) { + bool disallow_custom_for_non_premium) { CHECK(d != nullptr); CHECK(m != nullptr); auto active_reactions = get_message_active_reactions(d, m); @@ -23913,7 +23913,7 @@ ChatReactions MessagesManager::get_message_available_reactions(const Dialog *d, } } } - if (dissalow_custom_for_non_premium && !td_->option_manager_->get_option_boolean("is_premium")) { + if (disallow_custom_for_non_premium && !td_->option_manager_->get_option_boolean("is_premium")) { active_reactions.allow_custom_ = false; } return active_reactions; diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 678d8bb2c..d517b4bb3 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -2666,7 +2666,7 @@ class MessagesManager final : public Actor { void set_dialog_message_ttl(Dialog *d, MessageTtl message_ttl); ChatReactions get_message_available_reactions(const Dialog *d, const Message *m, - bool dissalow_custom_for_non_premium); + bool disallow_custom_for_non_premium); void set_message_reactions(Dialog *d, Message *m, bool is_big, bool add_to_recent, Promise &&promise);