mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-20 21:14:09 +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) {
|
||||
if (!$rootScope.currentCall || $rootScope.currentCall.state == 'ended') return;
|
||||
|
||||
this.localAVStream = stream;
|
||||
var audioTracks = stream.getAudioTracks();
|
||||
for (var i = 0; i < audioTracks.length; i++) {
|
||||
|
@ -140,6 +142,8 @@ angular.module('MatrixCall', [])
|
|||
};
|
||||
|
||||
MatrixCall.prototype.gotUserMediaForAnswer = function(stream) {
|
||||
if (!$rootScope.currentCall || $rootScope.currentCall.state == 'ended') return;
|
||||
|
||||
this.localAVStream = stream;
|
||||
var audioTracks = stream.getAudioTracks();
|
||||
for (var i = 0; i < audioTracks.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue