diff --git a/src/commands/profile.rs b/src/commands/profile.rs index 67913baf323f500c467123aea985fc3cbdffda46..22b6e7d122622d5716bb212c626b9f3c5ad9ccdb 100644 --- a/src/commands/profile.rs +++ b/src/commands/profile.rs @@ -1,5 +1,5 @@ use crate::*; -use anyhow::anyhow; +use anyhow::{anyhow, Result}; use serde::{Deserialize, Serialize}; use serde_json::{json, Value}; use std::collections::HashMap; @@ -569,8 +569,6 @@ async fn get_profile(data: Data, relay_url: Option<String>) -> Result<(), GcliEr ).await { Ok(Some(Ok(msg))) => { if let Message::Text(text) = msg { - event_received = Some(serde_json::from_str::<NostrEvent>(&text).unwrap()); - // Parse the message if let Ok(json) = serde_json::from_str::<Value>(&text) {