mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 16:07:15 +02:00
fix: use parseAddressPointer from nip89-helpers instead of non-existent parseCoordinate
This commit is contained in:
@@ -29,7 +29,8 @@ import { useCopy } from "@/hooks/useCopy";
|
||||
import { JsonViewer } from "@/components/JsonViewer";
|
||||
import { formatTimestamp } from "@/hooks/useLocale";
|
||||
import { nip19 } from "nostr-tools";
|
||||
import { getTagValue, parseCoordinate } from "applesauce-core/helpers";
|
||||
import { getTagValue } from "applesauce-core/helpers";
|
||||
import { parseAddressPointer } from "@/lib/nip89-helpers";
|
||||
import { getSeenRelays } from "applesauce-core/helpers/relays";
|
||||
import { EventFooter } from "@/components/EventFooter";
|
||||
import { cn } from "@/lib/utils";
|
||||
@@ -520,7 +521,7 @@ export function BaseEventContainer({
|
||||
const clientName = clientTag?.[1];
|
||||
const clientAddress = clientTag?.[2];
|
||||
const parsedClientAddress = clientAddress
|
||||
? parseCoordinate(clientAddress)
|
||||
? parseAddressPointer(clientAddress)
|
||||
: null;
|
||||
const clientAppPointer =
|
||||
parsedClientAddress?.kind === 31990 ? parsedClientAddress : null;
|
||||
|
||||
Reference in New Issue
Block a user