fix: close autoplay window on entering stream

Closes #114
This commit is contained in:
talksik
2026-04-07 16:24:02 -07:00
parent cd0d817cf7
commit 9c36a8f94d
3 changed files with 200 additions and 3 deletions
@@ -29,6 +29,7 @@ import { useStreamPlayback } from "@/hooks/use-stream-playback";
import { usePrefetchAdjacentMedia } from "@/hooks/use-prefetch-adjacent-media";
import { usePresencePositions } from "@/hooks/use-presence-positions";
import { cn, getInitials } from "@/lib/utils";
import { useMount } from "react-use";
function getParticleDisplayName(particle: Particle): string {
switch (particle.type) {
@@ -111,6 +112,10 @@ export function StreamView({ path, streamParticle }: StreamViewProps) {
const { networkId } = parseParticlePath(path);
const navigate = useNavigate();
useMount(() => {
window.electronAutoplay.dismiss();
});
const {
children,
currentParticle,