FetchBodyPart doesn't need the parent body structure

This commit is contained in:
Reto Brunner 2020-05-17 11:44:38 +02:00
parent bae678e8f2
commit 13a6a3fa71
9 changed files with 24 additions and 29 deletions

View file

@ -653,8 +653,7 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
return
}
if !pv.fetched {
pv.msg.FetchBodyPart(pv.msg.BodyStructure(),
pv.index, pv.SetSource)
pv.msg.FetchBodyPart(pv.index, pv.SetSource)
pv.fetched = true
}
if pv.err != nil {