Ensure webcam is turned off when leaving
This commit is contained in:
@@ -58,12 +58,11 @@ export function GroupCallView({
|
|||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
const onLeave = useCallback(() => {
|
const onLeave = useCallback(() => {
|
||||||
|
setLeft(true);
|
||||||
leave();
|
leave();
|
||||||
|
|
||||||
if (!isPasswordlessUser) {
|
if (!isPasswordlessUser) {
|
||||||
history.push("/");
|
history.push("/");
|
||||||
} else {
|
|
||||||
setLeft(true);
|
|
||||||
}
|
}
|
||||||
}, [leave, history]);
|
}, [leave, history]);
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export function LobbyView({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// TODO: Only init once
|
// TODO: Only init once
|
||||||
|
console.log("onInitLocalCallFeed");
|
||||||
onInitLocalCallFeed();
|
onInitLocalCallFeed();
|
||||||
}, [onInitLocalCallFeed]);
|
}, [onInitLocalCallFeed]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user