diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index e85caac..0ece323 100644 --- a/worker/maildir/worker.go +++ b/worker/maildir/worker.go @@ -115,19 +115,6 @@ func (w *Worker) handleFSEvent(ev fsnotify.Event) { return } - uids, err := w.c.UIDs(*w.selected) - if err != nil { - logging.Errorf("could not scan UIDs: %w", err) - return - } - sortedUids, err := w.sort(uids, w.currentSortCriteria) - if err != nil { - logging.Errorf("error sorting directory: %w", err) - return - } - w.worker.PostMessage(&types.DirectoryContents{ - Uids: sortedUids, - }, nil) dirInfo := w.getDirectoryInfo(w.selectedName) w.worker.PostMessage(&types.DirectoryInfo{ Info: dirInfo,