From 26467a6eb434e6f34cde7912d548db2137e8005c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= Date: Fri, 3 Jan 2025 00:14:10 +0100 Subject: [PATCH] Address last comment --- presage-cli/src/main.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/presage-cli/src/main.rs b/presage-cli/src/main.rs index 504ec47ee..31d8e9ea4 100644 --- a/presage-cli/src/main.rs +++ b/presage-cli/src/main.rs @@ -828,14 +828,7 @@ async fn run(subcommand: Cmd, config_store: S) -> anyhow::Result<()> { } Cmd::SyncContacts => { let mut manager = Manager::load_registered(config_store).await?; - let sync_message = SyncMessage { - request: Some(sync_message::Request { - r#type: Some(sync_message::request::Type::Contacts.into()), - }), - ..SyncMessage::with_padding(&mut thread_rng()) - }; - let aci_self = Recipient::Contact(manager.registration_data().service_ids.aci); - send(&mut manager, aci_self, sync_message).await?; + manager.request_contacts().await?; } Cmd::ListMessages { group_master_key,