mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 14:04:58 -04:00
Use event age to recognise which calls are current and which aren't and hence support answering calls that were placed before we loaded the page.
This commit is contained in:
parent
c099b36af3
commit
dd2b933a0d
4 changed files with 79 additions and 16 deletions
|
@ -130,6 +130,10 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even
|
|||
angular.element('#ringAudio')[0].pause();
|
||||
angular.element('#ringbackAudio')[0].pause();
|
||||
angular.element('#busyAudio')[0].play();
|
||||
} else if (newVal == 'ended' && oldVal == 'invite_sent' && $rootScope.currentCall.hangupParty == 'local' && $rootScope.currentCall.hangupReason == 'invite_timeout') {
|
||||
angular.element('#ringAudio')[0].pause();
|
||||
angular.element('#ringbackAudio')[0].pause();
|
||||
angular.element('#busyAudio')[0].play();
|
||||
} else if (oldVal == 'invite_sent') {
|
||||
angular.element('#ringbackAudio')[0].pause();
|
||||
} else if (oldVal == 'ringing') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue