Skip to content

Commit

Permalink
Ensure that private message push notifications don't contain mention.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 87d85e63b70fdc5c9fe91d22d7cf9b7ba59f0895
  • Loading branch information
levlam committed Oct 20, 2020
1 parent 06bb6b4 commit d17531e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25729,6 +25729,9 @@ Result<MessagesManager::MessagePushNotificationInfo> MessagesManager::get_messag
} else if (contains_mention && is_dialog_mention_notifications_disabled(d)) {
contains_mention = false;
}
if (dialog_id.get_type() == DialogType::User) {
contains_mention = false;
}

DialogId settings_dialog_id = dialog_id;
Dialog *settings_dialog = d;
Expand Down

0 comments on commit d17531e

Please sign in to comment.