aboutsummaryrefslogtreecommitdiffstats
path: root/lib/msgstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r--lib/msgstore.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 5349aa62..3125d69d 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -214,12 +214,15 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
updateThreads := false
directoryChange := false
switch msg := msg.(type) {
+ case *types.OpenDirectory:
+ store.Sort(store.sortCriteria, nil)
+ update = true
case *types.DirectoryInfo:
store.DirInfo = *msg.Info
- if !msg.SkipSort {
+ if msg.Refetch {
store.Sort(store.sortCriteria, nil)
+ update = true
}
- update = true
case *types.DirectoryContents:
newMap := make(map[uint32]*models.MessageInfo)
for _, uid := range msg.Uids {