diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-05-31 20:28:42 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-05-31 20:28:42 +0100 |
commit | 58ee43d020804448fe2ae504072e3c2addae6eb1 (patch) | |
tree | b06dcd0a7915390729ac4c07eb7911cb89660f28 /res/templates/notif.txt | |
parent | Fix synapse/storage/schema/delta/30/as_users.py (diff) | |
download | synapse-58ee43d020804448fe2ae504072e3c2addae6eb1.tar.xz |
handle emotes & notices correctly in email notifs
Diffstat (limited to '')
-rw-r--r-- | res/templates/notif.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/res/templates/notif.txt b/res/templates/notif.txt index a3ddac80ce..a37bee9833 100644 --- a/res/templates/notif.txt +++ b/res/templates/notif.txt @@ -1,7 +1,11 @@ {% for message in notif.messages %} -{{ message.sender_name }} ({{ message.ts|format_ts("%H:%M") }}) +{% if message.msgtype == "m.emote" %}* {% endif %}{{ message.sender_name }} ({{ message.ts|format_ts("%H:%M") }}) {% if message.msgtype == "m.text" %} {{ message.body_text_plain }} +{% elif message.msgtype == "m.emote" %} +{{ message.body_text_plain }} +{% elif message.msgtype == "m.notice" %} +{{ message.body_text_plain }} {% elif message.msgtype == "m.image" %} {{ message.body_text_plain }} {% elif message.msgtype == "m.file" %} |