commit a80ba1c

default  ·  2024-10-28 13:33:29 +0000 UTC
parent 5914279
Use the 'collapse_threads' field from user.json.
1 files changed,  +3, -0
M html.c
M html.c
+3, -0
 1@@ -1459,6 +1459,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
 2     if ((read_only || !user) && !is_msg_public(msg))
 3         return NULL;
 4 
 5+    if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads")))
 6+        collapse_threads = 1;
 7+
 8     /* hidden? do nothing more for this conversation */
 9     if (user && is_hidden(user, id)) {
10         xs *s1 = xs_fmt("%s_entry", md5);