Don't set the call state to ended on error

This isn't always the case, eg. just because we fail to pick up,
the call is still ringing.
This commit is contained in:
David Baker 2017-11-16 15:42:46 +00:00
parent af8ff1b888
commit 8ba9d26d4b

View file

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