aboutsummaryrefslogtreecommitdiffstats
path: root/lib/msgstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r--lib/msgstore.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index ddc2d562..817a7b32 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -290,6 +290,14 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
}
store.results = newResults
+ var newFiltered []uint32
+ for _, res := range store.filtered {
+ if _, deleted := toDelete[res]; !deleted {
+ newFiltered = append(newFiltered, res)
+ }
+ }
+ store.filtered = newFiltered
+
for _, thread := range store.Threads {
thread.Walk(func(t *types.Thread, _ int, _ error) error {
if _, deleted := toDelete[t.Uid]; deleted {