mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-30 03:34:02 +01:00
Don't try setting up the call if the user has canceled it before allowing permission.
This commit is contained in:
parent
25e96f82db
commit
ccfb42e4ff
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,8 @@ angular.module('MatrixCall', [])
|
||||||
};
|
};
|
||||||
|
|
||||||
MatrixCall.prototype.gotUserMediaForInvite = function(stream) {
|
MatrixCall.prototype.gotUserMediaForInvite = function(stream) {
|
||||||
|
if (!$rootScope.currentCall || $rootScope.currentCall.state == 'ended') return;
|
||||||
|
|
||||||
this.localAVStream = stream;
|
this.localAVStream = stream;
|
||||||
var audioTracks = stream.getAudioTracks();
|
var audioTracks = stream.getAudioTracks();
|
||||||
for (var i = 0; i < audioTracks.length; i++) {
|
for (var i = 0; i < audioTracks.length; i++) {
|
||||||
|
@ -140,6 +142,8 @@ angular.module('MatrixCall', [])
|
||||||
};
|
};
|
||||||
|
|
||||||
MatrixCall.prototype.gotUserMediaForAnswer = function(stream) {
|
MatrixCall.prototype.gotUserMediaForAnswer = function(stream) {
|
||||||
|
if (!$rootScope.currentCall || $rootScope.currentCall.state == 'ended') return;
|
||||||
|
|
||||||
this.localAVStream = stream;
|
this.localAVStream = stream;
|
||||||
var audioTracks = stream.getAudioTracks();
|
var audioTracks = stream.getAudioTracks();
|
||||||
for (var i = 0; i < audioTracks.length; i++) {
|
for (var i = 0; i < audioTracks.length; i++) {
|
||||||
|
|
Loading…
Reference in a new issue