aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/pipe.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-03-06 10:33:44 -0500
committerDrew DeVault <sir@cmpwn.com>2020-03-09 09:12:32 -0400
commitdf20f1cd03fcc369d3927b0936d0d126974f3b9a (patch)
treed2ff8a2511425cd0215e9b3c5365f8e1d7b084e6 /commands/msg/pipe.go
parent4711933b41246629af3946ffc9fe0eeaa94e6639 (diff)
downloadaerc-df20f1cd03fcc369d3927b0936d0d126974f3b9a.tar.gz
Refactoring: remove store from PartInfo
Diffstat (limited to 'commands/msg/pipe.go')
-rw-r--r--commands/msg/pipe.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go
index 001577c1..9491cf5d 100644
--- a/commands/msg/pipe.go
+++ b/commands/msg/pipe.go
@@ -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 {