Only send directory info once from maildir

The directory info only needs to be sent once for all the messages, this
reduces unnecessary messages being sent which could lock up the ui.
This commit is contained in:
Andrew Jeffery 2020-07-18 13:12:44 +01:00 committed by Reto Brunner
parent 825996572f
commit 126c9437e8
1 changed files with 5 additions and 4 deletions

View File

@ -498,11 +498,12 @@ func (w *Worker) handleFlagMessages(msg *types.FlagMessages) error {
Message: types.RespondTo(msg),
Info: info,
}, nil)
}
w.worker.PostMessage(&types.DirectoryInfo{
Info: w.getDirectoryInfo(w.selectedName),
}, nil)
}
return nil
}