Skip to content

Commit

Permalink
email_notifications: Remove unnecessary online_emails check.
Browse files Browse the repository at this point in the history
We already check this in `handle_missedmessage_emails` through
`receives_offline_email_notifications`.
  • Loading branch information
abhijeetbodas2001 authored and timabbott committed Jun 1, 2021
1 parent 44534ca commit f88b943
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions zerver/lib/email_notifications.py
Expand Up @@ -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
}
Expand Down

0 comments on commit f88b943

Please sign in to comment.