From 8620e17810b643c9d43238b157564a4ba7fe50b6 Mon Sep 17 00:00:00 2001 From: notplants Date: Wed, 12 Jan 2022 15:28:22 -0500 Subject: [PATCH] Add get_profile_info which gets name, description and image --- src/sbot.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sbot.rs b/src/sbot.rs index 6681376..fd065ca 100644 --- a/src/sbot.rs +++ b/src/sbot.rs @@ -320,11 +320,10 @@ impl Sbot { // these are the about message keys we are looking for // as we find values for each of these keys, // we will remove them from this vector (as we are no longer searching for them) - let mut keys_to_search_for = vec!["name", "description", "profile"]; + let mut keys_to_search_for = vec!["name", "description", "image"]; // iterate through the stream while it still has more values and // we still have keys we are looking for while let Some(res) = about_message_stream.next().await { - println!("res: {:?}", res); // if there are no more keys we are looking for, then we are done if keys_to_search_for.len() == 0 { break