refactor: explicit leaveOpen
This commit is contained in:
@ -11,7 +11,7 @@ import { GOAL } from "const";
|
||||
import { System } from "index";
|
||||
import { findTag } from "utils";
|
||||
|
||||
export function useGoal(link: NostrLink, leaveOpen = true) {
|
||||
export function useGoal(link: NostrLink, leaveOpen = false) {
|
||||
const sub = useMemo(() => {
|
||||
const b = new RequestBuilder(`goals:${link.author!.slice(0, 12)}`);
|
||||
b.withOptions({ leaveOpen });
|
||||
|
@ -7,7 +7,7 @@ import useEventFeed from "../hooks/event-feed";
|
||||
export function ChatPopout() {
|
||||
const params = useParams();
|
||||
const link = parseNostrLink(params.id!);
|
||||
const { data: ev } = useEventFeed(link);
|
||||
const { data: ev } = useEventFeed(link, true);
|
||||
|
||||
return (
|
||||
<div className="popout-chat">
|
||||
|
@ -108,7 +108,7 @@ export function StreamPage() {
|
||||
const params = useParams();
|
||||
const link = parseNostrLink(params.id!);
|
||||
const { data: ev } = useEventFeed(link, true);
|
||||
const goal = useGoal(link);
|
||||
const goal = useGoal(link, true);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Reference in New Issue
Block a user