Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
notification_triggers: Reduce loose string usage.
Prakhar Pratyushe12cd9862a8f
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.pyindex fdccd7129de..659ca446f82 100644--- a/zerver/lib/email_notifications.py+++ b/zerver/lib/email_notifications.py@@ -36,6 +36,7 @@ from zerver.lib.url_encoding import ()from zerver.models import (Message,+ NotificationTriggers,Realm,Recipient,Stream,@@ -524,7 +525,8 @@ def do_send_missedmessage_events_reply_in_zulip({m["message"].senderfor m in missed_messages- if m["trigger"] == "mentioned" or m["trigger"] == "wildcard_mentioned"+ if m["trigger"] == NotificationTriggers.MENTION+ or m["trigger"] == NotificationTriggers.WILDCARD_MENTION})message = missed_messages[0]["message"]