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/msg

View file

@ -126,7 +126,8 @@ func (Pipe) Execute(aerc *widgets.Aerc, args []string) error {
})
} else if pipePart {
p := provider.SelectedMessagePart()
p.Store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) {
store := provider.Store()
store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) {
if background {
doExec(reader)
} else {