From ffd9f89326d242d6577b19435040833c82315b2c Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 20 Mar 2019 06:02:19 +0300 Subject: [PATCH] Completely disable notification about registered contact by the corresponding option. GitOrigin-RevId: 7f3b9f6c6cb997637c969d1450640161058099db --- td/telegram/MessagesManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 434acfb19..1fc577cd7 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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; }