feat: add all nostr events command

This commit is contained in:
2024-02-07 14:04:57 +07:00
parent 3c4bd39384
commit 6a08c1de10
3 changed files with 128 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ use std::{str::FromStr, time::Duration};
use tauri::State;
#[tauri::command(async)]
pub async fn get_metadata(id: &str, nostr: State<'_, Nostr>) -> Result<Metadata, ()> {
pub async fn get_profile(id: &str, nostr: State<'_, Nostr>) -> Result<Metadata, ()> {
let client = &nostr.client;
let public_key;