Completely disable notification about registered contact by the corresponding option.

GitOrigin-RevId: 7f3b9f6c6cb997637c969d1450640161058099db
This commit is contained in:
levlam 2019-03-20 06:02:19 +03:00
parent c09d5dfbc2
commit ffd9f89326

View File

@ -18779,6 +18779,11 @@ bool MessagesManager::is_message_notification_disabled(const Dialog *d, const Me
VLOG(notifications) << "Disable notification for " << m->message_id << " in " << d->dialog_id
<< " with content of type " << m->content->get_type();
return true;
case MessageContentType::ContactRegistered:
if (m->disable_notification) {
return true;
}
break;
default:
break;
}