Support image notifs

This commit is contained in:
David Baker 2016-04-28 15:55:53 +01:00
parent 60f86fc876
commit 4845c7359d
2 changed files with 33 additions and 15 deletions

View file

@ -17,10 +17,14 @@
<div class="sender_name">{{ message.sender_name }}</div>
<div class="message_time">{{ message.ts|format_ts("%H:%M") }}</div>
<div class="message_body">
{% if message.format == "org.matrix.custom.html" %}
{{ message.body_text_html }}
{% else %}
{{ message.body_text_plain }}
{% if message.msgtype == "m.text" %}
{% if message.format == "org.matrix.custom.html" %}
{{ message.body_text_html }}
{% else %}
{{ message.body_text_plain }}
{% endif %}
{% elif message.msgtype == "m.image" %}
<img src="{{ message.image_url|mxc_to_http(640, 480, scale) }}" />
{% endif %}
</div>
</div>