summaryrefslogtreecommitdiff
path: root/commands/msgview/next.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-03-03 16:20:07 -0500
committerDrew DeVault <sir@cmpwn.com>2020-03-03 16:49:52 -0500
commitf3158b36f1f210ff54febbe82b571c1379b30c98 (patch)
tree10cde839c9517609f55b8f1057b1cf84ac592632 /commands/msgview/next.go
parent89f1684ea4b5e680db7ff06a54b2d4e78212cd12 (diff)
downloadaerc-f3158b36f1f210ff54febbe82b571c1379b30c98.zip
Initial support for PGP decryption & signatures
Diffstat (limited to 'commands/msgview/next.go')
-rw-r--r--commands/msgview/next.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/commands/msgview/next.go b/commands/msgview/next.go
index 4dc504c..c218ad5 100644
--- a/commands/msgview/next.go
+++ b/commands/msgview/next.go
@@ -2,6 +2,7 @@ package msgview
import (
"git.sr.ht/~sircmpwn/aerc/commands/account"
+ "git.sr.ht/~sircmpwn/aerc/lib"
"git.sr.ht/~sircmpwn/aerc/widgets"
)
@@ -36,7 +37,10 @@ func (NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
aerc.RemoveTab(mv)
return nil
}
- nextMv := widgets.NewMessageViewer(acct, aerc.Config(), store, nextMsg)
- aerc.ReplaceTab(mv, nextMv, nextMsg.Envelope.Subject)
+ lib.NewMessageStoreView(nextMsg, store, aerc.DecryptKeys,
+ func(view lib.MessageView) {
+ nextMv := widgets.NewMessageViewer(acct, aerc.Config(), view)
+ aerc.ReplaceTab(mv, nextMv, nextMsg.Envelope.Subject)
+ })
return nil
}