From f1e6fea9cb953145d4cfc7f9f94979dfc23f4c9b Mon Sep 17 00:00:00 2001 From: tuddman Date: Fri, 2 Aug 2024 15:21:46 +0200 Subject: [PATCH] fix: cleanup command --- examples/cli/cli-client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/cli/cli-client.rs b/examples/cli/cli-client.rs index 87e7a693e..17dee7bf4 100755 --- a/examples/cli/cli-client.rs +++ b/examples/cli/cli-client.rs @@ -352,16 +352,16 @@ async fn main() { let client = create_client(&cli, IdentityStrategy::CachedOnly) .await .unwrap(); - // client.sync_welcomes().await.unwrap(); // not needed, happens inside - // stream_all_messags let mut sync_group_messages_stream = xmtp_mls::Client::stream_all_messages(client.into(), true) .await .unwrap(); + while let Some(msg) = sync_group_messages_stream.next().await { + // Note: sending a reply should trigger automatically when processing the request info!("SYNC Group message: {}", format_message(msg)); } - // Note: sending a reply should trigger automatically when processing the request + info!("Synced history", { command_output: true }); } Commands::Clear {} => {