 </div>
    <div class="text">
      {% if m.type == "message" %}
      {{ nl2br(m.content | escape) | safe | urlize }}
      {% else %}
      {% if m.type == "user_joined" %}
      Joined.
      {% elif m.type == "user_joined_by_link" %}
      Joined by invite link.
      {% elif m.type == "user_left" %}
      Left.
      {% endif %}
      {% endif %}
    </div>

    {% if m.media %}
    <div class="media">
      {% if m.media.type == "webpage" and (m.media.title or m.media.description) %}
      <a href="{