diff options
author | Robin Jarry <robin@jarry.cc> | 2022-05-04 14:04:05 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-04 14:10:34 +0200 |
commit | ad51cb3611d0799a5cef03083f20b6b85c795f23 (patch) | |
tree | 330b936f0c0d22218bb69707e757aadf2cbf0b12 | |
parent | 21fca56292df154a0ec0346479f619900ffc1db9 (diff) | |
download | aerc-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.go | 3 |
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 |