diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-07-05 14:48:38 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-10 21:15:12 +0200 |
commit | 3a614e45fce9b505bb7e17a31eabffcc5e2d9022 (patch) | |
tree | 0074b0a5fdae73b98883fbe136ef290d5e014c90 /commands | |
parent | f0c76fad7299c2c43f5891becd4f0327e0e26df5 (diff) | |
download | aerc-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.go | 4 |
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 } |