mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-01 11:03:18 +03:00
Don't blindly hangup on a call error.
Not all errors means we want to send a hangup (in fact most don't, but the most notable being when we fail to answer a call: we should not then automatically reject it).
This commit is contained in:
parent
b0027525f3
commit
af8ff1b888
1 changed files with 0 additions and 1 deletions
|
@ -117,7 +117,6 @@ function _setCallListeners(call) {
|
|||
call.on("error", function(err) {
|
||||
console.error("Call error: %s", err);
|
||||
console.error(err.stack);
|
||||
call.hangup();
|
||||
_setCallState(undefined, call.roomId, "ended");
|
||||
if (err.code === 'unknown_devices') {
|
||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||
|
|
Loading…
Reference in a new issue