mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06:29 +03:00
Streamline access/working with configured params and configured addr (#3219)
This commit is contained in:
@@ -351,9 +351,8 @@ async fn set_self_key(
|
||||
}
|
||||
};
|
||||
|
||||
let self_addr = context.get_config(Config::ConfiguredAddr).await?;
|
||||
ensure!(self_addr.is_some(), "Missing self addr");
|
||||
let addr = EmailAddress::new(&self_addr.unwrap_or_default())?;
|
||||
let self_addr = context.get_configured_addr().await?;
|
||||
let addr = EmailAddress::new(&self_addr)?;
|
||||
let keypair = pgp::KeyPair {
|
||||
addr,
|
||||
public: public_key,
|
||||
|
||||
Reference in New Issue
Block a user