+ {% if view_mode == 'teaser' %}
+ {{ message.getPlainText() | slice(0, 1000) }}
+ {% else %}
{# Use getPlainText() after https://www.drupal.org/node/2405069. #}
-
{{ message.getDecodedBody() }}
- {% if attachments %}
-
- {% endif %}
-
-{% endif %}
+ {{ message.getDecodedBody() }}
+ {% endif %}
+