diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2023-01-12 12:29:17 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-26 00:20:39 +0100 |
commit | 31bc8cdad990f53ed061cf5b56a3601f1ab741d1 (patch) | |
tree | 3d76be42b965da4132a12d389b37043ffd62c2cd /widgets | |
parent | 38d63cb7f78835e4f99573f09bea6d5441a15af3 (diff) | |
download | aerc-31bc8cdad990f53ed061cf5b56a3601f1ab741d1.tar.gz |
switch-account: also switch account configuration
When switching accounts, headers were updated, but not the account
configurations in the composer. Switch the account config also and add
a debug log to send with the uri being used.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/compose.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index aad566f5..3ae41989 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -151,7 +151,7 @@ func (c *Composer) setupFor(view *AccountView) error { // set new account c.acct = view c.worker = view.Worker() - + c.acctConfig = c.acct.AccountConfig() // Set from header if not already in header if fl, err := c.header.AddressList("from"); err != nil || fl == nil { c.header.SetAddressList("from", []*mail.Address{view.acct.From}) |