mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +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
|
||||
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
|
||||
useEffect(() => {
|
||||
if (syncStateRef.current.checkedUrlParams) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue