diff options
-rw-r--r-- | lib/msgstore.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 4a68f808..31f6da28 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -236,9 +236,8 @@ func (store *MessageStore) Update(msg types.WorkerMessage) { case *types.DirectoryThreaded: newMap := make(map[uint32]*models.MessageInfo) - builder := NewThreadBuilder(store.iterFactory) - builder.RebuildUids(msg.Threads, store.reverseThreadOrder) - store.uids = builder.Uids() + store.builder = NewThreadBuilder(store.iterFactory) + store.builder.RebuildUids(msg.Threads, store.reverseThreadOrder) store.threads = msg.Threads for _, uid := range store.uids { |