Skip to content
Snippets Groups Projects
Commit 0075db14 authored by poka's avatar poka
Browse files

nostr fixes

parent 93f7d5d4
No related branches found
No related tags found
1 merge request!45Nostr
Pipeline #40614 passed
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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment