From 341ffa304083c85780f8272eff743facd458fce9 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sun, 16 Jul 2023 15:59:55 -0500 Subject: [PATCH] handle stream naddr --- src/views/link/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/link/index.tsx b/src/views/link/index.tsx index d6cc938b7..17c3fb9ca 100644 --- a/src/views/link/index.tsx +++ b/src/views/link/index.tsx @@ -1,6 +1,7 @@ import { Alert, AlertIcon, AlertTitle } from "@chakra-ui/react"; import { Navigate, useParams } from "react-router-dom"; import { nip19 } from "nostr-tools"; +import { STREAM_KIND } from "../../helpers/nostr/stream"; export default function NostrLinkView() { const { link } = useParams() as { link?: string }; @@ -23,6 +24,8 @@ export default function NostrLinkView() { case "note": case "nevent": return ; + case "naddr": + if (decoded.data.kind === STREAM_KIND) return ; } return (