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.
pull/21833/head
David Baker 2017-11-16 15:42:46 +00:00
parent af8ff1b888
commit 8ba9d26d4b
1 changed files with 0 additions and 1 deletions

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");