{{target_jid}}
{% for msg in messages %}
{% set current_date = msg.timestamp|date_fmt('full', date_only=True) %}
{% if loop.changed(current_date) %}
{{current_date}}
{% endif %}
{% include 'chat/message.html' %}
{% endfor %}
{{current_date}}
{% include 'chat/message_input.html' %}