summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-01 14:15:03 +0100
committerDavid Baker <dbkr@matrix.org>2014-09-01 14:15:32 +0100
commit67ffc00d489bf9571a734c24fcac79d18af2bcb6 (patch)
tree8779c9046c2b6364af685446d7fcca9a9bca79c3 /webclient/room/room.html
parentAdded /web folder which contains html/css (based off the default swagger-ui) ... (diff)
downloadsynapse-67ffc00d489bf9571a734c24fcac79d18af2bcb6.tar.xz
Don't show the hang up button once tha call has ended
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r--webclient/room/room.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index e5e454864b..d5b0f0ab96 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -106,7 +106,7 @@
                 <button ng-click="answerCall()">Answer</button>
                 <button ng-click="hangupCall()">Reject</button>
                 </div>
-                <button ng-click="hangupCall()" ng-show="currentCall && currentCall.state != 'ringing'">Hang up</button>
+                <button ng-click="hangupCall()" ng-show="currentCall && currentCall.state != 'ringing' && currentCall.state != 'ended' && currentCall.state != 'fledgling'">Hang up</button>
                 <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>