2020-10-19 09:12:39 -04:00
|
|
|
{%- 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" %}
|
2016-04-29 08:56:21 -04:00
|
|
|
{{ message.body_text_plain }}
|
2020-10-19 09:12:39 -04:00
|
|
|
{%- elif message.msgtype == "m.emote" %}
|
2016-05-31 15:28:42 -04:00
|
|
|
{{ message.body_text_plain }}
|
2020-10-19 09:12:39 -04:00
|
|
|
{%- elif message.msgtype == "m.notice" %}
|
2016-05-31 15:28:42 -04:00
|
|
|
{{ message.body_text_plain }}
|
2020-10-19 09:12:39 -04:00
|
|
|
{%- elif message.msgtype == "m.image" %}
|
2016-04-29 08:56:21 -04:00
|
|
|
{{ message.body_text_plain }}
|
2020-10-19 09:12:39 -04:00
|
|
|
{%- elif message.msgtype == "m.file" %}
|
2016-04-29 08:56:21 -04:00
|
|
|
{{ message.body_text_plain }}
|
2020-10-19 09:12:39 -04:00
|
|
|
{%- else %}
|
|
|
|
A message with unrecognised content.
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
2016-04-29 08:56:21 -04:00
|
|
|
|
2016-05-09 18:14:48 -04:00
|
|
|
View {{ room.title }} at {{ notif.link }}
|