Ensure the async function choose_identity_name is only called if no identity is given via command line.
AGHLXLITUXLL3WVUEVXMPMH35UWDQY2Q5DLFSUE5YLAOTFM7XH7QC
4OJWMSOWWNT5N4W4FDMKBZB5UARCLGV3SRZVKGR4EFAYFUMUHM7AC
MDY344ZZLCKXHA7VGJJYLNPCLHPI3I3LFODUYBPBH32SQ3SOOFIAC
I24UEJQLCH2SOXA4UHIYWTRDCHSOPU7AFTRUOTX7HZIAV4AZKYEQC
EEBKW7VTILH6AGGV57ZIJ3DJGYHDSYBWGU3C7Q4WWAKSVNUGIYMQC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
OU243LABJJZ3MQHYW2A2MYKW7KZLTZGHJJXDR2BIIIHXT5BSYN3AC
DWSAYGVEOR4D2EKIICEZUWCRGJTUXQQLOUWMYIFV7XN62K44F4FAC
let (key, _password) =
crate::identity::Complete::load(&crate::identity::choose_identity_name(false).await?)?
.decrypt()?;
let identity_name = if self.identity.is_some() {
self.identity.clone().unwrap()
} else {
crate::identity::choose_identity_name(false).await?
};
let (key, _password) = crate::identity::Complete::load(&identity_name)?.decrypt()?;
let public_key = crate::identity::public_key(
&self
.identity
.clone()
.unwrap_or(crate::identity::choose_identity_name(false).await?),
);
let identity_name = if self.identity.is_some() {
self.identity.clone().unwrap()
} else {
crate::identity::choose_identity_name(false).await?
};
let public_key = crate::identity::public_key(&identity_name);