fix: can't play local media bug

appeared after playback rewrite
This commit is contained in:
Fredrik Burmester
2024-08-21 23:21:53 +02:00
parent e216c8392f
commit b1062628d9
7 changed files with 22 additions and 77 deletions

View File

@@ -18,7 +18,7 @@ interface Props extends React.ComponentProps<typeof Button> {
export const PlayButton: React.FC<Props> = ({ item, url, ...props }) => {
const { showActionSheetWithOptions } = useActionSheet();
const client = useRemoteMediaClient();
const { currentlyPlaying, setCurrentlyPlayingState } = usePlayback();
const { setCurrentlyPlayingState } = usePlayback();
const onPress = async () => {
if (!url || !item) return;