mirror of https://github.com/vector-im/riot-web
Don't remove call when we call hangup
as hopefully explained by commentpull/21833/head
parent
faf2922b1b
commit
4c50125e9d
|
@ -566,7 +566,8 @@ export default class CallHandler {
|
||||||
} else {
|
} else {
|
||||||
this.calls.get(payload.room_id).hangup(CallErrorCode.UserHangup, false);
|
this.calls.get(payload.room_id).hangup(CallErrorCode.UserHangup, false);
|
||||||
}
|
}
|
||||||
this.removeCallForRoom(payload.room_id);
|
// don't remove the call yet: let the hangup event handler do it (otherwise it will throw
|
||||||
|
// the hangup event away)
|
||||||
break;
|
break;
|
||||||
case 'answer': {
|
case 'answer': {
|
||||||
if (!this.calls.has(payload.room_id)) {
|
if (!this.calls.has(payload.room_id)) {
|
||||||
|
|
Loading…
Reference in New Issue