summary refs log tree commit diff
path: root/synapse/res/templates/notif.txt
blob: 1ee7da3c50ef4cf12625dc7a2795a25295efbf12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{%- for message in notif.messages %}
{%- if message.event_type == "m.room.encrypted" %}
An encrypted message.
{%- elif message.event_type == "m.room.message" %}
{%- 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 }}
{%- else %}
A message with unrecognised content.
{%- endif %}
{%- endif %}
{%- endfor %}

View {{ room.title }} at {{ notif.link }}