From 0a2ba1903212136ecaa6b4c454c40aabe5a61082 Mon Sep 17 00:00:00 2001 From: kieran Date: Wed, 11 Dec 2024 14:04:02 +0000 Subject: [PATCH] fix: chat link --- src/pages/chat-popout.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/chat-popout.tsx b/src/pages/chat-popout.tsx index 0be6676..c806c22 100644 --- a/src/pages/chat-popout.tsx +++ b/src/pages/chat-popout.tsx @@ -1,5 +1,5 @@ import { useParams } from "react-router-dom"; -import { NostrPrefix, encodeTLV, parseNostrLink } from "@snort/system"; +import { NostrLink, parseNostrLink } from "@snort/system"; import { unwrap } from "@snort/shared"; import { LiveChat } from "@/element/chat/live-chat"; @@ -13,19 +13,18 @@ export function ChatPopout() { const ev = useCurrentStreamFeed(link, true); const goal = useZapGoal(findTag(ev, "goal")); - const lnk = parseNostrLink(encodeTLV(NostrPrefix.Address, findTag(ev, "d") ?? "", undefined, ev?.kind, ev?.pubkey)); const chat = Boolean(new URL(window.location.href).searchParams.get("chat")); return (
- + />}
); }