Fix the force TURN option
The call object is created within the js-sdk for inbound calls, so we never got the chance to set it.
This commit is contained in:
parent
6fd09bc09a
commit
6d23182f5f
3 changed files with 10 additions and 4 deletions
|
@ -136,6 +136,9 @@ class MatrixClientPeg {
|
|||
}
|
||||
|
||||
_createClient(creds: MatrixClientCreds) {
|
||||
// XXX: This is here and as a require because apparently circular dependencies
|
||||
// are just broken in webpack (https://github.com/webpack/webpack/issues/1788)
|
||||
const UserSettingsStore = require('./UserSettingsStore');
|
||||
const opts = {
|
||||
baseUrl: creds.homeserverUrl,
|
||||
idBaseUrl: creds.identityServerUrl,
|
||||
|
@ -143,6 +146,7 @@ class MatrixClientPeg {
|
|||
userId: creds.userId,
|
||||
deviceId: creds.deviceId,
|
||||
timelineSupport: true,
|
||||
forceTURN: UserSettingsStore.getLocalSetting('webRtcForceTURN', false),
|
||||
};
|
||||
|
||||
this.matrixClient = createMatrixClient(opts, this.indexedDbWorkerScript);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue