Merge branch 'main' of github.com:vector-im/matrix-video-chat

This commit is contained in:
Robert Long 2021-11-15 15:23:28 -08:00
commit 123a68e3b0

View file

@ -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]);