diff options
Diffstat (limited to 'lib')
-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 bbda90dd..085ca7f2 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -38,6 +38,7 @@ type MessageStore struct { filter []string sortCriteria []*types.SortCriterion + sortDefault []*types.SortCriterion threadedView bool reverseThreadOrder bool @@ -100,6 +101,7 @@ func NewMessageStore(worker *types.Worker, filter: []string{"filter"}, sortCriteria: defaultSortCriteria, + sortDefault: defaultSortCriteria, pendingBodies: make(map[uint32]interface{}), pendingHeaders: make(map[uint32]interface{}), @@ -683,7 +685,7 @@ func (store *MessageStore) ApplyClear() { if store.onFilterChange != nil { store.onFilterChange(store) } - store.Sort(nil, nil) + store.Sort(store.sortDefault, nil) } func (store *MessageStore) updateResults() { |