You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Merge branch 'develop' into gsouquet/pr-review-linting-rules
This commit is contained in:
@@ -1505,7 +1505,8 @@ export class MatrixCall extends EventEmitter {
|
||||
}
|
||||
|
||||
// Order is important here: first we stopAllMedia() and only then we can deleteAllFeeds()
|
||||
this.stopAllMedia();
|
||||
// We don't stop media if the call was replaced as we want to re-use streams in the successor
|
||||
if (hangupReason !== CallErrorCode.Replaced) this.stopAllMedia();
|
||||
this.deleteAllFeeds();
|
||||
|
||||
this.hangupParty = hangupParty;
|
||||
@@ -1802,7 +1803,10 @@ export function createNewMatrixCall(client: any, roomId: string, options?: CallO
|
||||
window.RTCIceCandidate || navigator.mediaDevices,
|
||||
);
|
||||
if (!supported) {
|
||||
logger.error("WebRTC is not supported in this browser / environment");
|
||||
// Adds a lot of noise to test runs, so disable logging there.
|
||||
if (process.env.NODE_ENV !== "test") {
|
||||
logger.error("WebRTC is not supported in this browser / environment");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user