aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msglist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r--widgets/msglist.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 24f3d3bf..4bf20b09 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -160,11 +160,10 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
}
baseSubject := threadSubject(store, thread)
- data.ThreadSameSubject = baseSubject == lastSubject &&
- sameParent(thread, prevThread) &&
- !isParent(thread)
- data.ThreadPrefix = threadPrefix(thread,
- store.ReverseThreadOrder())
+ data.SetThreading(
+ threadPrefix(thread, store.ReverseThreadOrder()),
+ baseSubject == lastSubject && sameParent(thread, prevThread) && !isParent(thread),
+ )
lastSubject = baseSubject
prevThread = thread