refactor: explicit leaveOpen
This commit is contained in:
@ -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 });
|
||||||
|
@ -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">
|
||||||
|
@ -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 (
|
||||||
<>
|
<>
|
||||||
|
Reference in New Issue
Block a user