commit d9d4ffb
default
·
2023-06-11 18:34:26 +0000 UTC
parent 5cdfd64
Hidden conversations are not rendered instead of given a 'display: none'.
1 files changed,
+4,
-6
M
html.c
M
html.c
+4,
-6
1@@ -769,13 +769,11 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
2 if (local && !is_msg_public(snac, msg))
3 return os;
4
5- xs *s = xs_str_new(NULL);
6-
7- /* top wrap */
8+ /* hidden? do nothing more for this conversation */
9 if (is_hidden(snac, id))
10- s = xs_str_cat(s, "<div style=\"display: none\">\n");
11- else
12- s = xs_str_cat(s, "<div>\n");
13+ return os;
14+
15+ xs *s = xs_str_new("<div>\n");
16
17 {
18 xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5);