diff options
Diffstat (limited to 'lib/msgstore.go')
-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 dc18137f..6774f59f 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -193,7 +193,9 @@ func (store *MessageStore) Update(msg types.WorkerMessage) { switch msg := msg.(type) { case *types.DirectoryInfo: store.DirInfo = *msg.Info - store.Sort(store.sortCriteria, nil) + if !msg.SkipSort { + store.Sort(store.sortCriteria, nil) + } update = true case *types.DirectoryContents: newMap := make(map[uint32]*models.MessageInfo) |