{% for msg in group.messages %}
{% set side = "self" if msg.is_self else "other" %}
{% set t = msg.content.__class__.__name__ %}
{% if t == "System" %}
{{ m.content_block(msg, caps, "wa") }}
{% else %}
{% set gname = is_group and not msg.is_self and is_run_start(msg) %}
{% if is_group and not msg.is_self %}{% if is_run_end(msg) %}{% else %}{% endif %}{% endif %}
{% if t == "Text" and caps.supports(msg.content) %}