aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/ChatReactions.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-04-30 20:48:24 +0300
committerlevlam <levlam@telegram.org>2024-04-30 20:48:24 +0300
commit379fdf85b751da01baab265dbed8c2fb8ae88dfe (patch)
tree4d8f3a4eb503c27a45708c9d16439b7435d8349d /td/telegram/ChatReactions.cpp
parentc42bf62038d7d32ba5fbd7919985a8635998586f (diff)
Various improvements.
Diffstat (limited to 'td/telegram/ChatReactions.cpp')
-rw-r--r--td/telegram/ChatReactions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/ChatReactions.cpp b/td/telegram/ChatReactions.cpp
index d9e20db50..fa75c49fe 100644
--- a/td/telegram/ChatReactions.cpp
+++ b/td/telegram/ChatReactions.cpp
@@ -84,7 +84,7 @@ bool ChatReactions::is_allowed_reaction_type(const ReactionType &reaction_type)
}
td_api::object_ptr<td_api::ChatAvailableReactions> ChatReactions::get_chat_available_reactions_object(Td *td) const {
- int32 reactions_uniq_max = static_cast<int32>(td->option_manager_->get_option_integer("reactions_uniq_max", 11));
+ auto reactions_uniq_max = static_cast<int32>(td->option_manager_->get_option_integer("reactions_uniq_max", 11));
if (0 < reactions_limit_ && reactions_limit_ < reactions_uniq_max) {
reactions_uniq_max = reactions_limit_;
}