aboutsummaryrefslogtreecommitdiffstats
path: root/lib/threadbuilder.go
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2023-10-29 23:45:55 +0100
committerRobin Jarry <robin@jarry.cc>2023-11-02 11:59:39 +0100
commit9ce4af011c93e2816ce04012f6205b54e0ed1d51 (patch)
treed7bc32021b9e40bafd26f034d5b44ab7300e5e47 /lib/threadbuilder.go
parent2bf8fb42980ea981da34e104d8cfd0d1e3da788b (diff)
downloadaerc-9ce4af011c93e2816ce04012f6205b54e0ed1d51.tar.gz
fold: allow for multiple folding levels
Extend the :fold/:unfold behaviour to allow for multiple folding levels. Signed-Off-By: inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/threadbuilder.go')
-rw-r--r--lib/threadbuilder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/threadbuilder.go b/lib/threadbuilder.go
index 1f2d72c6..63ae80d3 100644
--- a/lib/threadbuilder.go
+++ b/lib/threadbuilder.go
@@ -205,7 +205,7 @@ func (builder *ThreadBuilder) RebuildUids(threads []*types.Thread, inverse bool)
t.Deleted = stored.Deleted
}
builder.threadMap[t.Uid] = t
- if t.Deleted || t.Hidden {
+ if t.Deleted || t.Hidden != 0 {
return nil
}
threaduids = append(threaduids, t.Uid)