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.

email_notifications: Remove unnecessary `online_emails` check.

Abhijeet Prasad Bodasf88b943ff49c
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.py
index a0b92da0d7c..043077ec9d5 100644
--- a/zerver/lib/email_notifications.py
+++ b/zerver/lib/email_notifications.py
@@ -379,10 +379,6 @@ def do_send_missedmessage_events_reply_in_zulip(
"""
from zerver.context_processors import common_context
- # Disabled missedmessage emails internally
- if not user_profile.enable_offline_email_notifications:
- return
-
recipients = {
(msg["message"].recipient_id, msg["message"].topic_name()) for msg in missed_messages
}