Capture unknown device errors
This commit is contained in:
parent
4c7c3e2cd3
commit
225f0487d9
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) {
|
||||
groupCall.on("hangup", onHangup);
|
||||
groupCall.on("error", onError);
|
||||
}
|
||||
|
||||
return () => {
|
||||
if (groupCall) {
|
||||
groupCall.removeListener("hangup", onHangup);
|
||||
groupCall.removeListener("error", onError);
|
||||
}
|
||||
};
|
||||
}, [groupCall]);
|
||||
|
|
Loading…
Add table
Reference in a new issue