Minor improvements.

This commit is contained in:
levlam 2022-09-14 16:31:47 +03:00
parent b49b669ac1
commit c646e43e37
2 changed files with 2 additions and 4 deletions

View File

@ -2590,7 +2590,7 @@ availableReaction type:ReactionType needs_premium:Bool = AvailableReaction;
//@top_reactions List of reactions to be shown at the top
//@recent_reactions List of recently used reactions
//@popular_reactions List of popular reactions
//@allow_custom_emoji True, if any other custom emoji reaction could be added by Telegram Premium subscribers
//@allow_custom_emoji True, if custom emoji reactions could be added by Telegram Premium subscribers
availableReactions top_reactions:vector<availableReaction> recent_reactions:vector<availableReaction> popular_reactions:vector<availableReaction> allow_custom_emoji:Bool = AvailableReactions;
//@description Contains information about a emoji reaction

View File

@ -331,8 +331,6 @@ class SetDefaultReactionQuery final : public Td::ResultHandler {
}
auto default_reaction = td_->option_manager_->get_option_string("default_reaction", "-");
LOG(INFO) << "Successfully set reaction " << reaction_ << " as default, current default is " << default_reaction;
if (default_reaction != reaction_) {
send_set_default_reaction_query(td_);
} else {
@ -345,7 +343,7 @@ class SetDefaultReactionQuery final : public Td::ResultHandler {
return;
}
LOG(INFO) << "Failed to set default reaction: " << status;
LOG(INFO) << "Receive error for SetDefaultReactionQuery: " << status;
td_->option_manager_->set_option_empty("default_reaction_needs_sync");
send_closure(G()->config_manager(), &ConfigManager::request_config, false);
}