summary refs log tree commit diff
path: root/webclient/index.html
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-09 17:52:01 +0100
committerDavid Baker <dbkr@matrix.org>2014-09-09 17:52:01 +0100
commit25e96f82db21fe0216f748e53aadb8d9dac3da72 (patch)
treeed9338b793c997dea4b0c684ed1ebe86e612801f /webclient/index.html
parentDon't play an engaged tone if we hang up locally. (diff)
downloadsynapse-25e96f82db21fe0216f748e53aadb8d9dac3da72.tar.xz
Don't break if you press the hangup button before allowing media permission.
Diffstat (limited to '')
-rw-r--r--webclient/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/index.html b/webclient/index.html
index 53ac1cb10e..3b531027e1 100644
--- a/webclient/index.html
+++ b/webclient/index.html
@@ -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>