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