Ensure webcam is turned off when leaving
This commit is contained in:
parent
6311a869f9
commit
78eff5fa9e
2 changed files with 2 additions and 2 deletions
|
|
@ -58,12 +58,11 @@ export function GroupCallView({
|
|||
const history = useHistory();
|
||||
|
||||
const onLeave = useCallback(() => {
|
||||
setLeft(true);
|
||||
leave();
|
||||
|
||||
if (!isPasswordlessUser) {
|
||||
history.push("/");
|
||||
} else {
|
||||
setLeft(true);
|
||||
}
|
||||
}, [leave, history]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue