mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:46:01 -04:00
Hangup call if user denies media access.
This commit is contained in:
parent
ccfb42e4ff
commit
f90ce04a83
2 changed files with 2 additions and 8 deletions
|
@ -114,6 +114,7 @@ angular.module('MatrixCall', [])
|
|||
};
|
||||
matrixService.sendEvent(this.room_id, 'm.call.hangup', undefined, content).then(this.messageSent, this.messageSendFailed);
|
||||
this.state = 'ended';
|
||||
self.onHangup();
|
||||
};
|
||||
|
||||
MatrixCall.prototype.gotUserMediaForInvite = function(stream) {
|
||||
|
@ -233,6 +234,7 @@ angular.module('MatrixCall', [])
|
|||
|
||||
MatrixCall.prototype.getUserMediaFailed = function() {
|
||||
this.onError("Couldn't start capturing audio! Is your microphone set up?");
|
||||
this.hangup();
|
||||
};
|
||||
|
||||
MatrixCall.prototype.onIceConnectionStateChanged = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue