diff --git a/src/element/chat/live-chat.tsx b/src/element/chat/live-chat.tsx index b7cc980..7b9e8bf 100644 --- a/src/element/chat/live-chat.tsx +++ b/src/element/chat/live-chat.tsx @@ -69,14 +69,17 @@ export function LiveChat({ className?: string; autoRaid?: boolean; }) { - const relays = dedupe(removeUndefined(ev?.tags.filter(a => a[0] === "relays").map(a => sanitizeRelayUrl(a[1])) ?? [])); + const relays = dedupe( + removeUndefined(ev?.tags.filter(a => a[0] === "relays").map(a => sanitizeRelayUrl(a[1])) ?? []), + ); const host = getHost(ev); const feed = useReactions( `live:${link?.id}:${link?.author}:reactions`, goal ? [link, NostrLink.fromEvent(goal)] : [link], rb => { if (link) { - rb.withFilter().kinds([LIVE_STREAM_CHAT, LIVE_STREAM_RAID, LIVE_STREAM_CLIP]) + rb.withFilter() + .kinds([LIVE_STREAM_CHAT, LIVE_STREAM_RAID, LIVE_STREAM_CLIP]) .replyToLink([link]) .relay(relays) .limit(200); @@ -227,11 +230,7 @@ export function LiveChat({ {(canWrite ?? true) && (
{login ? ( - + ) : (

diff --git a/src/index.tsx b/src/index.tsx index afc010b..7d45950 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -47,7 +47,7 @@ const hasWasm = "WebAssembly" in globalThis; const workerRelay = new WorkerRelayInterface( import.meta.env.DEV ? new URL("@snort/worker-relay/dist/esm/worker.mjs", import.meta.url) : new WorkerVite(), ); -EventBuilder.ClientTag = ["client", "zap.stream", __ZAP_STREAM_VERSION__] +EventBuilder.ClientTag = ["client", "zap.stream", __ZAP_STREAM_VERSION__]; const System = new NostrSystem({ optimizer: hasWasm ? WasmOptimizer : undefined, cachingRelay: workerRelay,