From 420a543f8af3075502b0a7530a0fa06af264eb8b Mon Sep 17 00:00:00 2001 From: polwex Date: Tue, 18 Nov 2025 16:59:24 +0700 Subject: refactoring gui too, improvements to Nostr user logic --- gui/src/state/state.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gui/src/state') diff --git a/gui/src/state/state.ts b/gui/src/state/state.ts index 7d433f4..69633e3 100644 --- a/gui/src/state/state.ts +++ b/gui/src/state/state.ts @@ -91,7 +91,12 @@ export const useStore = creator((set, get) => ({ } } if ("nostr" in data.fact) { - set({ nostrFeed: data.fact.nostr }); + if ("feed" in data.fact.nostr) + set({ nostrFeed: data.fact.nostr.feed }); + if ("relays" in data.fact.nostr) + set({ relays: data.fact.nostr.relays }); + // if ("user" in data.fact.nostr) + // if ("thread" in data.fact.nostr) } } }); -- cgit v1.2.3