From d8f4f7641312bff32f772cbc070b3f99ced0c8fe Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 9 Dec 2024 15:35:18 +0000 Subject: fix: fetch user relays for `send`,`push` & `init` get the latest user relay list before pushing patches and repo announcement events --- src/lib/login/existing.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/login/existing.rs') diff --git a/src/lib/login/existing.rs b/src/lib/login/existing.rs index 45727b0..4606c22 100644 --- a/src/lib/login/existing.rs +++ b/src/lib/login/existing.rs @@ -27,6 +27,7 @@ use crate::{ /// - `client`: include client to fetch profiles from relays that are missing /// from cache /// - `silent`: do not print outcome in termianl +#[allow(clippy::too_many_arguments)] pub async fn load_existing_login( git_repo: &Option<&Repo>, signer_info: &Option, @@ -36,6 +37,7 @@ pub async fn load_existing_login( #[cfg(not(test))] client: Option<&Client>, silent: bool, prompt_for_password: bool, + fetch_profile_updates: bool, ) -> Result<(Arc, UserRef, SignerInfoSource)> { let (signer_info, source) = get_signer_info(git_repo, signer_info, password, source)?; @@ -50,6 +52,7 @@ pub async fn load_existing_login( None }, silent, + fetch_profile_updates, ) .await?; -- cgit v1.2.3