mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
fix leaving the room redirect afte whereby client-side fix
This commit is contained in:
@@ -197,14 +197,14 @@ export default function Room(details: RoomDetails) {
|
|||||||
}, [isLoading, meeting?.error]);
|
}, [isLoading, meeting?.error]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isLoading || !isAuthenticated || !roomUrl) return;
|
if (isLoading || !isAuthenticated || !roomUrl || !wherebyLoaded) return;
|
||||||
|
|
||||||
wherebyRef.current?.addEventListener("leave", handleLeave);
|
wherebyRef.current?.addEventListener("leave", handleLeave);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
wherebyRef.current?.removeEventListener("leave", handleLeave);
|
wherebyRef.current?.removeEventListener("leave", handleLeave);
|
||||||
};
|
};
|
||||||
}, [handleLeave, roomUrl, isLoading, isAuthenticated]);
|
}, [handleLeave, roomUrl, isLoading, isAuthenticated, wherebyLoaded]);
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user