From d9d4ffbc6145d31837926197da51a434061ed330 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 11 Jun 2023 20:34:26 +0200 Subject: [PATCH] Hidden conversations are not rendered instead of given a 'display: none'. --- html.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/html.c b/html.c index a341a37..656f1cb 100644 --- a/html.c +++ b/html.c @@ -769,13 +769,11 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, if (local && !is_msg_public(snac, msg)) return os; - xs *s = xs_str_new(NULL); - - /* top wrap */ + /* hidden? do nothing more for this conversation */ if (is_hidden(snac, id)) - s = xs_str_cat(s, "
\n"); - else - s = xs_str_cat(s, "
\n"); + return os; + + xs *s = xs_str_new("
\n"); { xs *s1 = xs_fmt("\n", md5);