summaryrefslogtreecommitdiff
path: root/gui/src/state/state.ts
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-11-18 16:59:24 +0700
committerpolwex <polwex@sortug.com>2025-11-18 16:59:24 +0700
commit420a543f8af3075502b0a7530a0fa06af264eb8b (patch)
tree7446a8c59bd4b66ca2bb5ed04bce40d382e31c36 /gui/src/state/state.ts
parent76f99af3c98a689441315b5ed087c4b83c083191 (diff)
refactoring gui too, improvements to Nostr user logic
Diffstat (limited to 'gui/src/state/state.ts')
-rw-r--r--gui/src/state/state.ts7
1 files changed, 6 insertions, 1 deletions
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)
}
}
});