Don't blindly hangup on a call error.

Not all errors means we want to send a hangup (in fact most don't,
but the most notable being when we fail to answer a call: we should
not then automatically reject it).
This commit is contained in:
David Baker 2017-11-16 11:07:57 +00:00
parent b0027525f3
commit af8ff1b888

View file

@ -117,7 +117,6 @@ function _setCallListeners(call) {
call.on("error", function(err) {
console.error("Call error: %s", err);
console.error(err.stack);
call.hangup();
_setCallState(undefined, call.roomId, "ended");
if (err.code === 'unknown_devices') {
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");