refactor: rename playback suspender
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
} from "lucide-react";
|
||||
import { useDownloadUrl } from "@/hooks/use-download-url";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { usePlaybackStore } from "@/stores/playback-store";
|
||||
import { usePlaybackSuspenderStore } from "@/stores/playback-suspender-store";
|
||||
|
||||
export interface AttachmentItem {
|
||||
id: string;
|
||||
@@ -114,7 +114,7 @@ export function AttachmentLightbox({
|
||||
// Suspend stream playback while the lightbox is open.
|
||||
useEffect(() => {
|
||||
if (!isOpen) return;
|
||||
const { suspend, release } = usePlaybackStore.getState();
|
||||
const { suspend, release } = usePlaybackSuspenderStore.getState();
|
||||
suspend();
|
||||
return release;
|
||||
}, [isOpen]);
|
||||
|
||||
Reference in New Issue
Block a user