mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Hidden conversations are not rendered instead of given a 'display: none'.
This commit is contained in:
parent
5cdfd64d61
commit
d9d4ffbc61
1 changed files with 4 additions and 6 deletions
10
html.c
10
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))
|
if (local && !is_msg_public(snac, msg))
|
||||||
return os;
|
return os;
|
||||||
|
|
||||||
xs *s = xs_str_new(NULL);
|
/* hidden? do nothing more for this conversation */
|
||||||
|
|
||||||
/* top wrap */
|
|
||||||
if (is_hidden(snac, id))
|
if (is_hidden(snac, id))
|
||||||
s = xs_str_cat(s, "<div style=\"display: none\">\n");
|
return os;
|
||||||
else
|
|
||||||
s = xs_str_cat(s, "<div>\n");
|
xs *s = xs_str_new("<div>\n");
|
||||||
|
|
||||||
{
|
{
|
||||||
xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5);
|
xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5);
|
||||||
|
|
Loading…
Reference in a new issue