This commit is contained in:
Timo K
2025-12-03 10:04:22 +01:00
parent 2e646bfac1
commit 88721be952
3 changed files with 2 additions and 25 deletions

View File

@@ -314,6 +314,7 @@ export const GroupCallView: FC<Props> = ({
const navigate = useNavigate();
// TODO split this into leave and onDisconnect
const onLeft = useCallback(
(
reason: "timeout" | "user" | "allOthersLeft" | "decline" | "error",

View File

@@ -151,6 +151,7 @@ export const ActiveCall: FC<ActiveCallProps> = (props) => {
setVm(vm);
vm.leave$.pipe(scope.bind()).subscribe(props.onLeft);
return (): void => {
scope.end();
};