Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

push_notifications: Remove outdated comments.

Abhijeet Prasad Bodas76dc504f7e74
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index 511f376d361..b06d2a2b4ad 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -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