diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-08-30 18:24:59 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-31 10:06:56 +0200 |
commit | cd002567e886d1692799747bfe529d72e024c16d (patch) | |
tree | 31a5d45b511803fd392ae13696c2135d832d2a2d /lib | |
parent | af9390d38befb9c227bfb90bfb7a49abb40ba411 (diff) | |
download | aerc-cd002567e886d1692799747bfe529d72e024c16d.tar.gz |
msgstore: do not run threadbuilder unless in threaded view
Commit 380cf13cff8e ("msgstore: run threadBuilder with no debounce on
DirectoryContents msg") fixed an issue related to running the
threadbuilder with a debounce. This fix causes the thread builder to run
for any DirectoryContents message, even if the view is not threaded.
Don't call runThreadBuilderNow unless in a threaded view.
Fixes: 380cf13cff8e ("msgstore: run threadBuilder with no debounce on DirectoryContents msg")
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msgstore.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 5655f9e0..33c2439a 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -209,7 +209,9 @@ func (store *MessageStore) Update(msg types.WorkerMessage) { } store.Messages = newMap store.uids = msg.Uids - store.runThreadBuilderNow() + if store.threadedView { + store.runThreadBuilderNow() + } case *types.DirectoryThreaded: var uids []uint32 newMap := make(map[uint32]*models.MessageInfo) |