mirror of https://github.com/vector-im/riot-web
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
parent
af8ff1b888
commit
8ba9d26d4b
|
@ -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 New Issue