compose: use selected account ui config for security header
Do not use the default ui config.
Fixes: 78b7e4e993
("compose: add sign/encrypt persistent display")
Signed-off-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
21fca56292
commit
ad51cb3611
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue