diff --git a/src/element/stream-editor/index.tsx b/src/element/stream-editor/index.tsx index f758d4a..a8fb75c 100644 --- a/src/element/stream-editor/index.tsx +++ b/src/element/stream-editor/index.tsx @@ -71,7 +71,7 @@ export function StreamEditor({ ev, onFinish, options }: StreamEditorProps) { } else if (gameId) { new GameDatabase().getGame(gameId).then(setGame); } - }, [ev?.id]); + }, []); const validate = useCallback(() => { if (title.length < 2) { diff --git a/src/utils.ts b/src/utils.ts index f8dd5bc..2900780 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -101,6 +101,7 @@ export interface StreamInfo { title?: string; summary?: string; image?: string; + thumbnail?: string; status?: StreamState; stream?: string; recording?: string; @@ -132,6 +133,7 @@ export function extractStreamInfo(ev?: NostrEvent) { matchTag(t, "title", v => (ret.title = v)); matchTag(t, "summary", v => (ret.summary = v)); matchTag(t, "image", v => (ret.image = v)); + matchTag(t, "thumbnail", v => (ret.thumbnail = v)); matchTag(t, "status", v => (ret.status = v as StreamState)); if (t[0] === "streaming" && t[1].startsWith("http")) { matchTag(t, "streaming", v => (ret.stream = v));