Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email_notifications: Change missed message for wildcard mention.
khanhdqee2141b0f112
diff --git a/templates/zerver/emails/missed_message.source.html b/templates/zerver/emails/missed_message.source.htmlindex a5e7d9a7802..4374ca1b8f9 100644--- a/templates/zerver/emails/missed_message.source.html+++ b/templates/zerver/emails/missed_message.source.html@@ -30,7 +30,7 @@{% elif mentioned_user_group_name %}{% trans %}You are receiving this because @{{ mentioned_user_group_name }} was mentioned.{% endtrans %}<br />{% elif wildcard_mentioned %}- {% trans %}You are receiving this because everyone was mentioned.{% endtrans %}<br />+ {% trans %}You are receiving this because everyone was mentioned in #{{ stream_name }}.{% endtrans %}<br />{% elif stream_email_notify %}{% trans %}You are receiving this because you have email notifications enabled for #{{ stream_name }}.{% endtrans %}<br />{% endif %}diff --git a/templates/zerver/emails/missed_message.txt b/templates/zerver/emails/missed_message.txtindex 2aad26d0f85..56bc427c5c1 100644--- a/templates/zerver/emails/missed_message.txt+++ b/templates/zerver/emails/missed_message.txt@@ -26,7 +26,7 @@ See {{ alert_notif_url }} for more details.{% elif mentioned_user_group_name %}{% trans %}You are receiving this because @{{ mentioned_user_group_name }} was mentioned.{% endtrans %}{% elif wildcard_mentioned %}-{% trans %}You are receiving this because everyone was mentioned.{% endtrans %}+{% trans %}You are receiving this because everyone was mentioned in #{{ stream_name }}.{% endtrans %}{% elif stream_email_notify %}{% trans %}You are receiving this because you have email notifications enabled for #{{ stream_name }}.{% endtrans %}{% endif %}diff --git a/zerver/tests/test_email_notifications.py b/zerver/tests/test_email_notifications.pyindex 9cee153d684..5e9e6b2e669 100644--- a/zerver/tests/test_email_notifications.py+++ b/zerver/tests/test_email_notifications.py@@ -561,7 +561,7 @@ class TestMissedMessages(ZulipTestCase):if show_message_content:verify_body_include = ["Othello, the Moor of Venice: > 1 > 2 > 3 > 4 > 5 > @**all** -- ",- "You are receiving this because everyone was mentioned.",+ "You are receiving this because everyone was mentioned in #Denmark.",]email_subject = "#Denmark > test"verify_body_does_not_include: List[str] = []@@ -958,7 +958,7 @@ class TestMissedMessages(ZulipTestCase):expected_email_include = ["Othello, the Moor of Venice: > 1 > @**all** -- ",- "You are receiving this because everyone was mentioned.",+ "You are receiving this because everyone was mentioned in #Denmark.",]for text in expected_email_include: