Refactoring: remove store from PartInfo

This commit is contained in:
Drew DeVault 2020-03-06 10:33:44 -05:00
parent 4711933b41
commit df20f1cd03
5 changed files with 6 additions and 5 deletions
commands/msgview

View file

@ -108,7 +108,8 @@ func (Save) Execute(aerc *widgets.Aerc, args []string) error {
}
ch := make(chan error, 1)
pi.Store.FetchBodyPart(
store := mv.Store()
store.FetchBodyPart(
pi.Msg.Uid, pi.Msg.BodyStructure, pi.Index, func(reader io.Reader) {
f, err := os.Create(path)
if err != nil {