summary refs log tree commit diff
path: root/webclient/app-controller.js
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-09 17:37:50 +0100
committerDavid Baker <dbkr@matrix.org>2014-09-09 17:38:40 +0100
commit253c327252a3455aa5ce3a3147e19406a4d67615 (patch)
tree88c7d31cc37c229a50bf0af8f6b9fffb98ad0141 /webclient/app-controller.js
parentFix bug where we used an unbound local variable if we ended up rolling back t... (diff)
downloadsynapse-253c327252a3455aa5ce3a3147e19406a4d67615.tar.xz
Don't play an engaged tone if we hang up locally.
Diffstat (limited to 'webclient/app-controller.js')
-rw-r--r--webclient/app-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/app-controller.js b/webclient/app-controller.js
index 20b5076727..4a57f66ef0 100644
--- a/webclient/app-controller.js
+++ b/webclient/app-controller.js
@@ -118,7 +118,7 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even
             angular.element('#ringAudio')[0].pause();
             angular.element('#ringbackAudio')[0].pause();
             angular.element('#callendAudio')[0].play();
-        } else if (newVal == 'ended' && oldVal == 'invite_sent') {
+        } else if (newVal == 'ended' && oldVal == 'invite_sent' && $rootScope.currentCall.hangupParty == 'remote') {
             angular.element('#ringAudio')[0].pause();
             angular.element('#ringbackAudio')[0].pause();
             angular.element('#busyAudio')[0].play();