Add planned start time

This commit is contained in:
2023-06-25 23:33:34 +01:00
parent ec2ef2142b
commit 602b4c5d0d
10 changed files with 69 additions and 18 deletions

View File

@ -4,9 +4,12 @@ import { useRequestBuilder } from "@snort/system-react";
import { System } from "index";
export default function useEventFeed(link: NostrLink) {
export default function useEventFeed(link: NostrLink, leaveOpen = false) {
const sub = useMemo(() => {
const b = new RequestBuilder(`event:${link.id.slice(0, 12)}`);
b.withOptions({
leaveOpen
})
if (link.type === NostrPrefix.Address) {
const f = b.withFilter().tag("d", [link.id]);
if (link.author) {