{# Message bubble loop. Shared by _conversation.html (initial render) and _history_page.html (load-older paging). Expects `msgs` (list, oldest-first) and `is_group` (bool). #} {% for m in msgs %}
{% if is_group and not m.from_me and m.sender_name %}
{{ m.sender_name }}
{% endif %} {% if m.link_preview %} Link preview
{{ m.link_preview.domain }}
{{ m.link_preview.url }}
{% endif %} {% if m.attachments %}
{% for a in m.attachments %} {% if not a.ready %}
syncing attachment…
{% elif a.kind == 'image' %} {{ a.name }} {% elif a.kind == 'video' %} {% elif a.kind == 'audio' %} {% else %} {{ a.name }} {% endif %} {% endfor %}
{% endif %} {% if m.text and not m.link_preview %}
{{ m.text }}
{% endif %}
{{ m.ts }} {% if m.from_me and m.status and m.status != 'delivered' %} {% if m.status == 'failed' %} {{ m.label }} {% elif m.status == 'sent' %} sent {% else %} {{ m.label }} {% endif %} {% endif %}
{% endfor %}