snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit a80ba1c5386bc262aa04cb8ef9a2be7cb3812ea0
parent 59142795e78806208a541243d66fed6965f642ea
Author: default <nobody@localhost>
Date:   Mon, 28 Oct 2024 14:33:29 +0100

Use the 'collapse_threads' field from user.json.

Diffstat:
Mhtml.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/html.c b/html.c @@ -1459,6 +1459,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, if ((read_only || !user) && !is_msg_public(msg)) return NULL; + if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads"))) + collapse_threads = 1; + /* hidden? do nothing more for this conversation */ if (user && is_hidden(user, id)) { xs *s1 = xs_fmt("%s_entry", md5);