mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 05:02:24 +00:00
fix watchparty join shortcut on home page
This commit is contained in:
parent
bef85aa741
commit
80d2ae13bd
1 changed files with 7 additions and 0 deletions
|
|
@ -82,6 +82,13 @@ export function useWatchPartySync(
|
||||||
// Get watch party state
|
// Get watch party state
|
||||||
const { roomCode, isHost, enabled, enableAsGuest } = useWatchPartyStore();
|
const { roomCode, isHost, enabled, enableAsGuest } = useWatchPartyStore();
|
||||||
|
|
||||||
|
// Reset URL parameter checking when watch party is disabled
|
||||||
|
useEffect(() => {
|
||||||
|
if (!enabled) {
|
||||||
|
syncStateRef.current.checkedUrlParams = false;
|
||||||
|
}
|
||||||
|
}, [enabled]);
|
||||||
|
|
||||||
// Check URL parameters for watch party code
|
// Check URL parameters for watch party code
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (syncStateRef.current.checkedUrlParams) return;
|
if (syncStateRef.current.checkedUrlParams) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue