Small improvements

This commit is contained in:
2023-07-20 19:16:46 +01:00
parent 8d43ac3768
commit 26b8890245
6 changed files with 84 additions and 11 deletions

View File

@ -9,13 +9,14 @@ export function ChatPopout() {
const link = parseNostrLink(params.id!);
const { data: ev } = useEventFeed(link, true);
const chat = new URL(window.location.href).searchParams.get("chat");
return (
<div className="popout-chat">
<LiveChat
ev={ev}
link={link}
options={{
canWrite: false,
canWrite: Boolean(chat),
showHeader: false,
}}
/>