about summary refs log tree commit diff stats
path: root/lib/messageview.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-17 11:44:38 +0200
committerReto Brunner <reto@labrat.space>2020-05-17 11:44:38 +0200
commit13a6a3fa7109ce6dcff79ea9ed2a012226386fad (patch)
treef182c5d8f8dbaf5a6445b5c226a229faa7005efa /lib/messageview.go
parentbae678e8f20605b64596c9e976623f2a37247adb (diff)
downloadaerc-13a6a3fa7109ce6dcff79ea9ed2a012226386fad.tar.gz
FetchBodyPart doesn't need the parent body structure
Diffstat (limited to 'lib/messageview.go')
-rw-r--r--lib/messageview.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/messageview.go b/lib/messageview.go
index 3970804..59a1af6 100644
--- a/lib/messageview.go
+++ b/lib/messageview.go
@@ -28,8 +28,7 @@ type MessageView interface {
 	Store() *MessageStore
 
 	// Fetches a specific body part for this message
-	FetchBodyPart(parent *models.BodyStructure,
-		part []int, cb func(io.Reader))
+	FetchBodyPart(part []int, cb func(io.Reader))
 
 	PGPDetails() *openpgp.MessageDetails
 }
@@ -110,11 +109,10 @@ func (msv *MessageStoreView) PGPDetails() *openpgp.MessageDetails {
 	return msv.details
 }
 
-func (msv *MessageStoreView) FetchBodyPart(parent *models.BodyStructure,
-	part []int, cb func(io.Reader)) {
+func (msv *MessageStoreView) FetchBodyPart(part []int, cb func(io.Reader)) {
 
 	if msv.message == nil {
-		msv.messageStore.FetchBodyPart(msv.messageInfo.Uid, parent, part, cb)
+		msv.messageStore.FetchBodyPart(msv.messageInfo.Uid, part, cb)
 		return
 	}