From 0075db1449325cf3bd96d40ba987726e06130438 Mon Sep 17 00:00:00 2001 From: poka <poka@p2p.legal> Date: Sat, 17 May 2025 02:24:35 +0200 Subject: [PATCH] nostr fixes --- src/commands/profile.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/profile.rs b/src/commands/profile.rs index 67913ba..22b6e7d 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) { -- GitLab