You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
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:
@@ -877,6 +877,11 @@ module.exports = React.createClass({
|
||||
// TODO: this ought to be a separate component so that we don't need
|
||||
// to rebind the onChange each time we render
|
||||
const onChange = (e) => {
|
||||
// XXX: awful, but at time of writing, granular settings has landed on
|
||||
// develop which will almost certainly mean we'll handle this differently.
|
||||
if (setting.id === 'webRtcForceTURN') {
|
||||
MatrixClientPeg.get().setForceTURN(e.target.checked);
|
||||
}
|
||||
UserSettingsStore.setLocalSetting(setting.id, e.target.checked);
|
||||
if (setting.fn) setting.fn(e.target.checked);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user