From c64d5fc66cdadaecd98de8ce58318c022fa3e2b2 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 5 May 2016 01:59:20 +0100 Subject: [PATCH] fix room.txt --- res/templates/room.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/res/templates/room.txt b/res/templates/room.txt index 999d0ae60a..84648c710e 100644 --- a/res/templates/room.txt +++ b/res/templates/room.txt @@ -1,6 +1,9 @@ {{ room.title }} -You've been invited, join at {{ room.link }} -{% for notif in room.notifs %} -{% include 'notif.txt' with context %} -{% endfor %} +{% if room.invite %} + You've been invited, join at {{ room.link }} +{% else %} + {% for notif in room.notifs %} + {% include 'notif.txt' with context %} + {% endfor %} +{% endif %}