Skip to content

Commit

Permalink
fix: cleanup command
Browse files Browse the repository at this point in the history
  • Loading branch information
tuddman committed Aug 2, 2024
1 parent 4d4ec95 commit f1e6fea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/cli/cli-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} => {
Expand Down

0 comments on commit f1e6fea

Please sign in to comment.