about summary refs log tree commit diff stats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/account/view.go8
-rw-r--r--commands/msg/delete.go7
-rw-r--r--commands/msgview/next.go8
3 files changed, 17 insertions, 6 deletions
diff --git a/commands/account/view.go b/commands/account/view.go
index aab9052..d1b90ce 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
 }
diff --git a/commands/msg/delete.go b/commands/msg/delete.go
index 3f91a46..fb0d1f8 100644
--- a/commands/msg/delete.go
+++ b/commands/msg/delete.go
@@ -68,8 +68,11 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
 				acct.Messages().Scroll()
 				return nil
 			}
-			nextMv := widgets.NewMessageViewer(acct, aerc.Config(), store, next)
-			aerc.ReplaceTab(mv, nextMv, next.Envelope.Subject)
+			lib.NewMessageStoreView(next, store, aerc.DecryptKeys,
+				func(view lib.MessageView) {
+					nextMv := widgets.NewMessageViewer(acct, aerc.Config(), view)
+					aerc.ReplaceTab(mv, nextMv, next.Envelope.Subject)
+				})
 		}
 	}
 	acct.Messages().Scroll()
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
 }
pecs/ranger/commit/Makefile?h=v1.7.1&id=3a1e1f28fa847df5021b37d4c81eb4dfa01f5a8e'>3a1e1f28 ^
b0a216f5 ^


5fca2a0b ^
b0b3af33 ^


b0a216f5 ^
b0b3af33 ^

2c5ea01d ^
5fca2a0b ^
b0b3af33 ^
2c5ea01d ^
582f3519 ^
b06433bc ^
582f3519 ^

94c5d83e ^
dee6cfa6 ^
e9e4b4ff ^
b0a216f5 ^
a082b66a ^

b0a216f5 ^
e9e4b4ff ^





ad75190c ^
e9e4b4ff ^
5fca2a0b ^


7ed4e620 ^
5fca2a0b ^

c7720fff ^



8d21b83c ^


e9e4b4ff ^
25a4162d ^
e9e4b4ff ^
0c2c782d ^
636d9393 ^
b0a216f5 ^
c0d63e78 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93