mirror of https://github.com/zulip/zulip.git
Don't send offline email notifications to bots
(imported from commit f7547f49580bf905c05a4fa2aa064fb82b7b4036)
This commit is contained in:
parent
7f04c8f9b9
commit
c5d28a78a2
|
@ -276,7 +276,8 @@ def process_new_message(data):
|
|||
|
||||
user_profile = get_user_profile_by_id(user_profile_id)
|
||||
|
||||
if user_profile.enable_offline_email_notifications:
|
||||
if user_profile.enable_offline_email_notifications and \
|
||||
not user_profile.is_bot:
|
||||
event = {"user_profile_id": user_profile_id,
|
||||
"message_id": message.id,
|
||||
"timestamp": time.time()}
|
||||
|
|
Loading…
Reference in New Issue