Merge branch 'main' of github.com:vector-im/matrix-video-chat
This commit is contained in:
commit
123a68e3b0
1 changed files with 7 additions and 0 deletions
|
@ -134,13 +134,20 @@ export function GroupCallView({ client, groupCall, simpleGrid }) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onError(error) {
|
||||||
|
Sentry.captureException(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (groupCall) {
|
if (groupCall) {
|
||||||
groupCall.on("hangup", onHangup);
|
groupCall.on("hangup", onHangup);
|
||||||
|
groupCall.on("error", onError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
if (groupCall) {
|
if (groupCall) {
|
||||||
groupCall.removeListener("hangup", onHangup);
|
groupCall.removeListener("hangup", onHangup);
|
||||||
|
groupCall.removeListener("error", onError);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [groupCall]);
|
}, [groupCall]);
|
||||||
|
|
Loading…
Reference in a new issue