diff --git a/templates/zerver/emails/missed_message.html b/templates/zerver/emails/missed_message.html index 30f79ac621..5501b66559 100644 --- a/templates/zerver/emails/missed_message.html +++ b/templates/zerver/emails/missed_message.html @@ -20,9 +20,15 @@ {% if show_message_content %}
{% for recipient_block in messages %} -
-
{{ recipient_block.header.html|safe }}
-
+ {% if not recipient_block.header.stream_message %} +
+
{{ recipient_block.header.html|safe }}
+
+ {% else %} +
+
{{ recipient_block.header.html|safe }}
+
+ {% endif %} {% for sender_block in recipient_block.senders %} {% if sender_block.sender %}
{{ sender_block.sender }}
{% endif %} {% for message_block in sender_block.content %} diff --git a/tools/check-templates b/tools/check-templates index 8cad20a8fa..a91ce57841 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -16,6 +16,8 @@ from typing import cast, Callable, Dict, Iterable, List EXCLUDED_FILES = [ ## Test data Files for testing modules in tests "tools/tests/test_template_data", + # Our parser doesn't handle the way its conditionals are layered + 'templates/zerver/emails/missed_message.html', ] def check_our_files(modified_only, all_dups, targets):