diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-07-18 10:29:52 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-25 15:28:11 +0200 |
commit | 7f66297c521fca8f9bc17280f0a96874598bde96 (patch) | |
tree | 643e1d5c6dbbf55814c689f2509f3eb9bd532fa2 /worker | |
parent | 9cd806fa6e80829753ecd3356e19044d6e210826 (diff) | |
download | aerc-7f66297c521fca8f9bc17280f0a96874598bde96.tar.gz |
threadbuilder: show siblings even when no parent found
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 <koni.marti@gmail.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'worker')
-rw-r--r-- | worker/types/thread.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |