You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
326 B

{% for message in messages -%}
{%- set content = message.content -%}
From {{ message.sender }}
Date {{ message.timestamp }}
{% if content.msgtype == 'm.text' %}
{{ content.body }}
{%- elif content.msgtype == 'm.image' -%}
Image: {{ content.url }}
{%- else -%}
Unknown type: {{ content.msgtype }}
{%- endif %}
---
{% endfor %}