From f3158b36f1f210ff54febbe82b571c1379b30c98 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 3 Mar 2020 16:20:07 -0500 Subject: Initial support for PGP decryption & signatures --- commands/account/view.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'commands/account/view.go') 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 } -- cgit