diff options
Diffstat (limited to 'commands/account/view.go')
-rw-r--r-- | commands/account/view.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/commands/account/view.go b/commands/account/view.go index aab90529..d1b90cef 100644 --- a/commands/account/view.go +++ b/commands/account/view.go @@ -3,6 +3,7 @@ package account import ( "errors" + "git.sr.ht/~sircmpwn/aerc/lib" "git.sr.ht/~sircmpwn/aerc/widgets" ) @@ -37,7 +38,10 @@ func (ViewMessage) Execute(aerc *widgets.Aerc, args []string) error { if deleted { return nil } - viewer := widgets.NewMessageViewer(acct, aerc.Config(), store, msg) - aerc.NewTab(viewer, msg.Envelope.Subject) + lib.NewMessageStoreView(msg, store, aerc.DecryptKeys, + func(view lib.MessageView) { + viewer := widgets.NewMessageViewer(acct, aerc.Config(), view) + aerc.NewTab(viewer, msg.Envelope.Subject) + }) return nil } |