{% extends "layouts/app.twig" %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('message.title') }}: {{ other_user.displayName }}{% endblock %} {% block content %}
{% for msg in messages %} {% set own_message = msg.user_id == user.id %}

{{ msg.text | nl2br }}

{% if not own_message and msg.read == false %} {% endif %}
{% endfor %}
{{ csrf() }}
{{ f.submit(m.icon('send-fill')) }}
{% endblock %}