Add ignore_default_disable_notification option.

GitOrigin-RevId: 9386d08601bce5b6cd3ef3413033439a30f99362
This commit is contained in:
levlam 2020-03-05 00:17:19 +03:00
parent afde9cf6b8
commit cc8d876589
2 changed files with 5 additions and 1 deletions

View File

@ -17789,7 +17789,8 @@ MessagesManager::Message *MessagesManager::get_message_to_send(
m->forward_info = std::move(forward_info);
m->is_copy = is_copy || forward_info != nullptr;
if (td_->auth_manager_->is_bot() || options.disable_notification) {
if (td_->auth_manager_->is_bot() || options.disable_notification ||
G()->shared_config().get_option_boolean("ignore_default_disable_notification")) {
m->disable_notification = options.disable_notification;
} else {
auto notification_settings = get_dialog_notification_settings(dialog_id, true);

View File

@ -6736,6 +6736,9 @@ void Td::on_request(uint64 id, td_api::setOption &request) {
if (set_boolean_option("ignore_background_updates")) {
return;
}
if (set_boolean_option("ignore_default_disable_notification")) {
return;
}
if (set_boolean_option("ignore_inline_thumbnails")) {
return;
}