diff options
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r-- | widgets/msgviewer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index b41b57c0..0e6af5b5 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -290,6 +290,10 @@ func (mv *MessageViewer) SelectedAccount() *AccountView { return mv.acct } +func (mv *MessageViewer) MessageView() lib.MessageView { + return mv.msg +} + func (mv *MessageViewer) SelectedMessage() (*models.MessageInfo, error) { if mv.msg == nil { return nil, errors.New("no message selected") |