From 7f66297c521fca8f9bc17280f0a96874598bde96 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Tue, 18 Jul 2023 10:29:52 +0200 Subject: threadbuilder: show siblings even when no parent found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show all threading associations even when not all nodes are present. Indicate if a thread is incomplete, i.e. misses a direct parent node. Use the `msglist_thread_orphan.fg=red` styleobject in your stylesheet to indicate whether a messsage has a missing parent. Also use a different thread prefix ("┬─" instead of "├─") not to confuse them with regular threads that have a visible parent. Signed-off-by: Koni Marti Signed-off-by: Robin Jarry Tested-by: Matěj Cepl --- worker/types/thread.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worker') diff --git a/worker/types/thread.go b/worker/types/thread.go index a79a0b2d..42565964 100644 --- a/worker/types/thread.go +++ b/worker/types/thread.go @@ -146,6 +146,9 @@ func getMaxUID(thread *Thread) uint32 { var Uid uint32 _ = thread.Walk(func(t *Thread, _ int, currentErr error) error { + if t.Deleted || t.Hidden > 0 { + return nil + } if t.Uid > Uid { Uid = t.Uid } -- cgit