diff options
author | default <nobody@localhost> | 2023-06-11 20:34:26 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-11 20:34:26 +0200 |
commit | d9d4ffbc6145d31837926197da51a434061ed330 (patch) | |
tree | 4bf5c93e53663b76645261b7b06879be0dd0d5f8 | |
parent | 5cdfd64d610f1029c5d018e25cb098e9f53c7333 (diff) |
Hidden conversations are not rendered instead of given a 'display: none'.
-rw-r--r-- | html.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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, "<div style=\"display: none\">\n"); - else - s = xs_str_cat(s, "<div>\n"); + return os; + + xs *s = xs_str_new("<div>\n"); { xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5); |