Rename need_skip_bot_commands to need_always_skip_bot_commands.
This commit is contained in:
parent
2b8c23fdac
commit
0e244ea67c
@ -39,7 +39,7 @@ Result<InputMessageText> process_input_message_text(const ContactsManager *conta
|
||||
}
|
||||
|
||||
TRY_RESULT(entities, get_message_entities(contacts_manager, std::move(input_message_text->text_->entities_)));
|
||||
auto need_skip_commands = need_skip_bot_commands(contacts_manager, dialog_id, is_bot);
|
||||
auto need_skip_commands = need_always_skip_bot_commands(contacts_manager, dialog_id, is_bot);
|
||||
bool parse_markdown = G()->shared_config().get_option_boolean("always_parse_markdown");
|
||||
TRY_STATUS(fix_formatted_text(input_message_text->text_->text_, entities, for_draft, parse_markdown,
|
||||
need_skip_commands, for_draft));
|
||||
|
@ -3929,7 +3929,7 @@ Result<FormattedText> process_input_caption(const ContactsManager *contacts_mana
|
||||
}
|
||||
TRY_RESULT(entities, get_message_entities(contacts_manager, std::move(caption->entities_)));
|
||||
TRY_STATUS(fix_formatted_text(caption->text_, entities, true, false,
|
||||
need_skip_bot_commands(contacts_manager, dialog_id, is_bot), false));
|
||||
need_always_skip_bot_commands(contacts_manager, dialog_id, is_bot), false));
|
||||
return FormattedText{std::move(caption->text_), std::move(entities)};
|
||||
}
|
||||
|
||||
@ -3944,7 +3944,7 @@ void add_formatted_text_dependencies(Dependencies &dependencies, const Formatted
|
||||
}
|
||||
}
|
||||
|
||||
bool need_skip_bot_commands(const ContactsManager *contacts_manager, DialogId dialog_id, bool is_bot) {
|
||||
bool need_always_skip_bot_commands(const ContactsManager *contacts_manager, DialogId dialog_id, bool is_bot) {
|
||||
if (!dialog_id.is_valid()) {
|
||||
return true;
|
||||
}
|
||||
|
@ -191,6 +191,6 @@ Result<FormattedText> process_input_caption(const ContactsManager *contacts_mana
|
||||
|
||||
void add_formatted_text_dependencies(Dependencies &dependencies, const FormattedText *text);
|
||||
|
||||
bool need_skip_bot_commands(const ContactsManager *contacts_manager, DialogId dialog_id, bool is_bot);
|
||||
bool need_always_skip_bot_commands(const ContactsManager *contacts_manager, DialogId dialog_id, bool is_bot);
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
Reference in New Issue
Block a user