Disable notifications for importe messages.

This commit is contained in:
levlam 2021-01-28 22:12:55 +03:00
parent 9e37c85af3
commit f0355b42c4

View File

@ -27629,6 +27629,9 @@ bool MessagesManager::is_message_notification_disabled(const Dialog *d, const Me
G()->shared_config().get_option_boolean("disable_sent_scheduled_message_notifications")) { G()->shared_config().get_option_boolean("disable_sent_scheduled_message_notifications")) {
return true; return true;
} }
if (m->forward_info != nullptr && m->forward_info->is_imported) {
return true;
}
switch (m->content->get_type()) { switch (m->content->get_type()) {
case MessageContentType::ChatDeleteHistory: case MessageContentType::ChatDeleteHistory: