mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
zerver/lib/notifications: Add stream email notifications.
This modifies the logic for formatting outgoing missed-message emails to support the upcoming stream email notifications feature (providing a new format for the subject, etc.).
This commit is contained in:
@@ -367,6 +367,8 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile: UserProfile,
|
||||
if m['trigger'] == 'mentioned'))
|
||||
# TODO: When we add wildcard mentions that send emails, we
|
||||
# should make sure the right logic applies here.
|
||||
elif ('stream_email_notify' in unique_triggers):
|
||||
context.update({'stream_email_notify': True})
|
||||
else:
|
||||
raise AssertionError("Invalid messages!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user