aboutsummaryrefslogtreecommitdiffstats
path: root/lib/msgstore.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-12-06 08:35:57 -0600
committerRobin Jarry <robin@jarry.cc>2022-12-07 00:46:34 +0100
commitc4df1eea3ef4ac89d52a9d80a8151d3999215a6a (patch)
treed123d822522ed6e4c13b81671bb160d9e5487724 /lib/msgstore.go
parentbf713a89d1e8127c02a9680889b5c88809a26f2b (diff)
downloadaerc-c4df1eea3ef4ac89d52a9d80a8151d3999215a6a.tar.gz
msgstore: set store.uids in threaded directories
Commit b46e57324394 ("store: fix server-side threads toggling") introduced a regression where the uids of the store were not set after rebuilding the threads. This would result in a flash of pending messages as they were repopulated. This also would not properly remove messages which were moved out of the store (deleted, moved, archived) with server side threading. Re-add the line that sets the store.uids. Fixes: b46e57324394 ("store: fix server-side threads toggling") Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r--lib/msgstore.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 31f6da28..45513145 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -238,6 +238,7 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
store.builder = NewThreadBuilder(store.iterFactory)
store.builder.RebuildUids(msg.Threads, store.reverseThreadOrder)
+ store.uids = store.builder.Uids()
store.threads = msg.Threads
for _, uid := range store.uids {