aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-07-05 14:48:38 -0500
committerRobin Jarry <robin@jarry.cc>2022-07-10 21:15:12 +0200
commit3a614e45fce9b505bb7e17a31eabffcc5e2d9022 (patch)
tree0074b0a5fdae73b98883fbe136ef290d5e014c90 /widgets
parentf0c76fad7299c2c43f5891becd4f0327e0e26df5 (diff)
downloadaerc-3a614e45fce9b505bb7e17a31eabffcc5e2d9022.tar.gz
threading: enable toggle-threads for server-side threads
Enable the :toggle-threads command to work for workers which have Thread capability. The implementation of that feature has the side effect that the threading-enabled config option now sets the default view (threaded or not threaded) for any worker, not just IMAP or notmuch. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 399ed724..9e68f219 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -88,7 +88,7 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
row int = 0
)
- if uiConfig.ThreadingEnabled || store.BuildThreads() {
+ if store.ThreadedView() {
threads := store.Threads
counter := len(store.Uids())