summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-05-04 14:04:05 +0200
committerRobin Jarry <robin@jarry.cc>2022-05-04 14:10:34 +0200
commitad51cb3611d0799a5cef03083f20b6b85c795f23 (patch)
tree330b936f0c0d22218bb69707e757aadf2cbf0b12
parent21fca56292df154a0ec0346479f619900ffc1db9 (diff)
downloadaerc-ad51cb3611d0799a5cef03083f20b6b85c795f23.zip
compose: use selected account ui config for security header
Do not use the default ui config. Fixes: 78b7e4e993f5 ("compose: add sign/encrypt persistent display") Signed-off-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--widgets/compose.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index d9080d1..6fbc23a 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -202,7 +202,8 @@ func (c *Composer) Encrypt() bool {
func (c *Composer) updateCrypto() error {
if c.crypto == nil {
- c.crypto = newCryptoStatus(&c.config.Ui)
+ uiConfig := c.acct.UiConfig()
+ c.crypto = newCryptoStatus(&uiConfig)
}
var err error
// Check if signKey is empty so we only run this once