mirror of
https://github.com/element-hq/element-call.git
synced 2026-11-04 06:42:30 +00:00
Ensure webcam is turned off when leaving
This commit is contained in:
1 parent
6311a869f9
commit
78eff5fa9e
2 files changed
+2
-2
No files matched your search
@@ -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]);
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ export function LobbyView({
|
||||
|
||||
useEffect(() => {
|
||||
// TODO: Only init once
|
||||
console.log("onInitLocalCallFeed");
|
||||
onInitLocalCallFeed();
|
||||
}, [onInitLocalCallFeed]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user