Don't break if you press the hangup button before allowing media permission.

pull/4/merge
David Baker 11 years ago
parent 253c327252
commit 25e96f82db
  1. 2
      webclient/components/matrix/matrix-call.js
  2. 3
      webclient/index.html

@ -104,7 +104,7 @@ angular.module('MatrixCall', [])
console.trace("Ending call "+this.call_id);
this.stopAllMedia();
this.peerConn.close();
if (this.peerConn) this.peerConn.close();
this.hangupParty = 'local';

@ -58,7 +58,8 @@
<span ng-show="currentCall.state == 'invite_sent'">Calling...</span>
<span ng-show="currentCall.state == 'connecting'">Call Connecting...</span>
<span ng-show="currentCall.state == 'connected'">Call Connected</span>
<span ng-show="currentCall.state == 'ended' && !currentCall.didConnect && currentCall.direction == 'outbound'">Call Rejected</span>
<span ng-show="currentCall.state == 'ended' && !currentCall.didConnect && currentCall.direction == 'outbound' && currentCall.hangupParty == 'remote'">Call Rejected</span>
<span ng-show="currentCall.state == 'ended' && !currentCall.didConnect && currentCall.direction == 'outbound' && currentCall.hangupParty == 'local'">Call Canceled</span>
<span ng-show="currentCall.state == 'ended' && currentCall.didConnect && currentCall.direction == 'outbound'">Call Ended</span>
<span ng-show="currentCall.state == 'ended' && !currentCall.didConnect && currentCall.direction == 'inbound'">Call Canceled</span>
<span ng-show="currentCall.state == 'ended' && currentCall.didConnect && currentCall.direction == 'inbound'">Call Ended</span>

Loading…
Cancel
Save