push_notifications: Remove outdated comments.

We solely rely on the logic here for filtering with the `read` flag
since 10dd5f784b.
This commit is contained in:
Abhijeet Prasad Bodas 2021-07-08 10:24:27 +05:30 committed by Tim Abbott
parent af47fa705e
commit 76dc504f7e
1 changed files with 0 additions and 4 deletions

View File

@ -912,10 +912,6 @@ def handle_push_notification(user_profile_id: int, missed_message: Dict[str, Any
if user_message is not None:
# If the user has read the message already, don't push-notify.
#
# TODO: It feels like this is already handled when things are
# put in the queue; maybe we should centralize this logic with
# the `zerver/tornado/event_queue.py` logic?
if user_message.flags.read or user_message.flags.active_mobile_push_notification:
return