From 6ea94989bf1d81030886df0b74f002ad465186cf Mon Sep 17 00:00:00 2001
From: 2ro <17595647+2ro@users.noreply.github.com>
Date: Tue, 16 Jun 2026 00:31:27 -0400
Subject: [PATCH] nostr: fix profile loading over the relay
Profiles never loaded when scanning a bare npub (username/avatar stayed
blank) even though the relay stores and serves the kind-0 fine. Two causes:
fetch_profile_blocking ran on a throwaway current-thread runtime that can't
drive the relay connections (which live on the service runtime, behind the
custom Nym mixnet transport), and it only dialed nprofile hints, never the
user's own default relays. Run the fetch on the service runtime via a stored
Handle, and always dial the default relay set (incl relay.goblin.st).
---
src/nostr/client.rs | 37 ++++++++++++++++++++++++++++---------
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a/src/nostr/client.rs b/src/nostr/client.rs
index 3a3ec39..7de639d 100644
--- a/src/nostr/client.rs
+++ b/src/nostr/client.rs
@@ -73,6 +73,11 @@ pub struct NostrService {
/// SDK client, present while the service loop runs.
client: RwLock