From f0ebe2f2151ecd92e4bc11d75e9082f443f11555 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Thu, 22 Aug 2024 14:16:10 +0100 Subject: [PATCH] Remove images from message notification e-mails --- synapse/res/templates/notif.html | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/synapse/res/templates/notif.html b/synapse/res/templates/notif.html index 7d86681fed..39f05b85a3 100644 --- a/synapse/res/templates/notif.html +++ b/synapse/res/templates/notif.html @@ -1,19 +1,6 @@ {%- for message in notif.messages %} - {%- if loop.index0 == 0 or notif.messages[loop.index0 - 1].sender_name != notif.messages[loop.index0].sender_name %} - {%- if message.sender_avatar_url %} - - {%- else %} - {%- if message.sender_hash % 3 == 0 %} - - {%- elif message.sender_hash % 3 == 1 %} - - {%- else %} - - {%- endif %} - {%- endif %} - {%- endif %} {%- if loop.index0 == 0 or notif.messages[loop.index0 - 1].sender_name != notif.messages[loop.index0].sender_name %} @@ -30,7 +17,7 @@ {%- elif message.msgtype == "m.notice" %} {{ message.body_text_html }} {%- elif message.msgtype == "m.image" and message.image_url %} - + {{ message.body_text_plain }} (image) {%- elif message.msgtype == "m.file" %} {{ message.body_text_plain }} {%- else %}