diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-10-18 15:07:03 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-10-18 15:07:03 +0100 |
commit | c632bc865448b40d246878e2d6c9287621b4ba0e (patch) | |
tree | d126c9cba47f70f40cee6acebac8f1cf93599e66 /synapse/res/templates/notif.txt | |
parent | Merge pull request #4049 from matrix-org/erikj/synctl_colour (diff) | |
parent | 0.33.7 (diff) | |
download | synapse-c632bc865448b40d246878e2d6c9287621b4ba0e.tar.xz |
Merge branch 'master' into develop
Diffstat (limited to 'synapse/res/templates/notif.txt')
-rw-r--r-- | synapse/res/templates/notif.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/synapse/res/templates/notif.txt b/synapse/res/templates/notif.txt new file mode 100644 index 0000000000..a37bee9833 --- /dev/null +++ b/synapse/res/templates/notif.txt @@ -0,0 +1,16 @@ +{% for message in notif.messages %} +{% 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" %} +{{ message.body_text_plain }} +{% endif %} +{% endfor %} + +View {{ room.title }} at {{ notif.link }} |