summaryrefslogtreecommitdiff
path: root/commands
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 /commands
parentf0c76fad7299c2c43f5891becd4f0327e0e26df5 (diff)
downloadaerc-3a614e45fce9b505bb7e17a31eabffcc5e2d9022.zip
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 'commands')
-rw-r--r--commands/msg/toggle-threads.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/msg/toggle-threads.go b/commands/msg/toggle-threads.go
index ac4242b..aa0e655 100644
--- a/commands/msg/toggle-threads.go
+++ b/commands/msg/toggle-threads.go
@@ -35,8 +35,8 @@ func (ToggleThreads) Execute(aerc *widgets.Aerc, args []string) error {
return err
}
defer store.Reselect(store.Selected())
- store.SetBuildThreads(!store.BuildThreads())
- acct.SetStatus(statusline.Threading(store.BuildThreads()))
+ store.SetThreadedView(!store.ThreadedView())
+ acct.SetStatus(statusline.Threading(store.ThreadedView()))
acct.Messages().Invalidate()
return nil
}