1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Don't send a hangup on user media failure

We won't have sent the invite anyway. Also termainate before we
fire the error event so the call is 'ended' when the event handlers
fire (which means if they try to hang up it's also ignored)
This commit is contained in:
David Baker
2017-11-15 17:18:47 +00:00
parent 76b2fc2a6c
commit a48a88c312

View File

@@ -767,6 +767,7 @@ MatrixCall.prototype._getLocalOfferFailed = function(error) {
* @param {Object} error * @param {Object} error
*/ */
MatrixCall.prototype._getUserMediaFailed = function(error) { MatrixCall.prototype._getUserMediaFailed = function(error) {
terminate(this, "local", 'user_media_failed', false);
this.emit( this.emit(
"error", "error",
callError( callError(
@@ -775,7 +776,6 @@ MatrixCall.prototype._getUserMediaFailed = function(error) {
"does this app have permission?", "does this app have permission?",
), ),
); );
this.hangup("user_media_failed");
}; };
/** /**