summary refs log tree commit diff
path: root/res/templates/notif.html
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-28 16:59:57 +0100
committerDavid Baker <dave@matrix.org>2016-04-28 16:59:57 +0100
commit68f8fc2f143d44b560b07e7521b28aae332e243d (patch)
treef5edd1974065984f98c14cbcb2ef13ab0b298ec0 /res/templates/notif.html
parentSupport image notifs (diff)
downloadsynapse-68f8fc2f143d44b560b07e7521b28aae332e243d.tar.xz
Support file messages & fix plain text
Diffstat (limited to 'res/templates/notif.html')
-rw-r--r--res/templates/notif.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/res/templates/notif.html b/res/templates/notif.html
index bdff2786ff..70f5655352 100644
--- a/res/templates/notif.html
+++ b/res/templates/notif.html
@@ -18,13 +18,11 @@
                 <div class="message_time">{{ message.ts|format_ts("%H:%M") }}</div>
                 <div class="message_body">
                     {% if message.msgtype == "m.text" %}
-                        {% if message.format == "org.matrix.custom.html" %}
-                            {{ message.body_text_html }}
-                        {% else %}
-                            {{ message.body_text_plain }}
-                        {% endif %}
+                        {{ message.body_text_html }}
                     {% elif message.msgtype == "m.image" %}
                         <img src="{{ message.image_url|mxc_to_http(640, 480, scale) }}" />
+                    {% elif message.msgtype == "m.file" %}
+                        <span class="filename">{{ message.body_text_plain }}</span>
                     {% endif %}
                 </div>
             </div>