From 8ba9d26d4b72b2aaca752718e5e03450887d04a8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Nov 2017 15:42:46 +0000 Subject: [PATCH] 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. --- src/CallHandler.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CallHandler.js b/src/CallHandler.js index 918f38976a..5131473ec2 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -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");