diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/biggerStreamPreview/index.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/biggerStreamPreview/index.tsx b/src/plugins/biggerStreamPreview/index.tsx index d3ed713..acad564 100644 --- a/src/plugins/biggerStreamPreview/index.tsx +++ b/src/plugins/biggerStreamPreview/index.tsx @@ -61,14 +61,13 @@ export const handleViewPreview = async ({ guildId, channelId, ownerId }: Applica }; export const addViewStreamContext: NavContextMenuPatchCallback = (children, { userId }: { userId: string | bigint; }) => () => { - const streamPreviewItemIdentifier = "view-stream-preview"; - const stream = ApplicationStreamingStore.getAnyStreamForUser(userId); + if (!stream) return; const streamPreviewItem = ( <Menu.MenuItem label="View Stream Preview" - id={streamPreviewItemIdentifier} + id="view-stream-preview" icon={ScreenshareIcon} action={() => stream && handleViewPreview(stream)} disabled={!stream} |