refactor: explicit leaveOpen

This commit is contained in:
Alejandro Gomez
2023-07-06 16:52:32 +02:00
parent 7dce7f5a73
commit 55fb812854
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import { GOAL } from "const";
import { System } from "index"; import { System } from "index";
import { findTag } from "utils"; import { findTag } from "utils";
export function useGoal(link: NostrLink, leaveOpen = true) { export function useGoal(link: NostrLink, leaveOpen = false) {
const sub = useMemo(() => { const sub = useMemo(() => {
const b = new RequestBuilder(`goals:${link.author!.slice(0, 12)}`); const b = new RequestBuilder(`goals:${link.author!.slice(0, 12)}`);
b.withOptions({ leaveOpen }); b.withOptions({ leaveOpen });

View File

@ -7,7 +7,7 @@ import useEventFeed from "../hooks/event-feed";
export function ChatPopout() { export function ChatPopout() {
const params = useParams(); const params = useParams();
const link = parseNostrLink(params.id!); const link = parseNostrLink(params.id!);
const { data: ev } = useEventFeed(link); const { data: ev } = useEventFeed(link, true);
return ( return (
<div className="popout-chat"> <div className="popout-chat">

View File

@ -108,7 +108,7 @@ export function StreamPage() {
const params = useParams(); const params = useParams();
const link = parseNostrLink(params.id!); const link = parseNostrLink(params.id!);
const { data: ev } = useEventFeed(link, true); const { data: ev } = useEventFeed(link, true);
const goal = useGoal(link); const goal = useGoal(link, true);
return ( return (
<> <>