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:
parent
af8ff1b888
commit
8ba9d26d4b
1 changed files with 0 additions and 1 deletions
|
@ -117,7 +117,6 @@ function _setCallListeners(call) {
|
||||||
call.on("error", function(err) {
|
call.on("error", function(err) {
|
||||||
console.error("Call error: %s", err);
|
console.error("Call error: %s", err);
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
_setCallState(undefined, call.roomId, "ended");
|
|
||||||
if (err.code === 'unknown_devices') {
|
if (err.code === 'unknown_devices') {
|
||||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue