diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index d2760bc82c..813f0ed87e 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -216,6 +216,7 @@ class MatrixClientPeg { deviceId: creds.deviceId, timelineSupport: true, forceTURN: !SettingsStore.getValue('webRtcAllowPeerToPeer', false), + fallbackICEServerAllowed: !!SettingsStore.getValue('fallbackICEServerAllowed'), verificationMethods: [verificationMethods.SAS], unstableClientRelationAggregation: true, }; diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index ff30bb1605..f935303c0a 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1386,18 +1386,18 @@ export default React.createClass({ ) }
{ _t(
"Riot can use a fallback server turn.matrix.org
" +
- "for the current session if you urgently need to make a call. " +
- "Your IP address would be shared with this fallback server " +
- "only if you agree and later place or receive a call.",
+ "if you urgently need to make a call. Your IP address would be " +
+ "shared with this fallback server only if you agree and later " +
+ "place or receive a call. You can change this permission later " +
+ "in the Voice & Video section of Settings.",
null, { code },
)}
%(homeserverDomain)s
is currently not configured to assist with calls by offering a TURN server, which means it is likely that voice and video calls will fail. Please notify your homeserver administrator so that they can address this.": "Your homeserver %(homeserverDomain)s
is currently not configured to assist with calls by offering a TURN server, which means it is likely that voice and video calls will fail. Please notify your homeserver administrator so that they can address this.",
- "Riot can use a fallback server turn.matrix.org
for the current session if you urgently need to make a call. Your IP address would be shared with this fallback server only if you agree and later place or receive a call.": "Riot can use a fallback server turn.matrix.org
for the current session if you urgently need to make a call. Your IP address would be shared with this fallback server only if you agree and later place or receive a call.",
+ "Riot can use a fallback server turn.matrix.org
if you urgently need to make a call. Your IP address would be shared with this fallback server only if you agree and later place or receive a call. You can change this permission later in the Voice & Video section of Settings.": "Riot can use a fallback server turn.matrix.org
if you urgently need to make a call. Your IP address would be shared with this fallback server only if you agree and later place or receive a call. You can change this permission later in the Voice & Video section of Settings.",
"Allow Fallback": "Allow Fallback",
"Signed Out": "Signed Out",
"For security, this session has been signed out. Please sign in again.": "For security, this session has been signed out. Please sign in again.",
diff --git a/src/settings/Settings.js b/src/settings/Settings.js
index 55085963d1..77e1c2cb25 100644
--- a/src/settings/Settings.js
+++ b/src/settings/Settings.js
@@ -372,4 +372,10 @@ export const SETTINGS = {
default: false,
controller: new LowBandwidthController(),
},
+ "fallbackICEServerAllowed": {
+ supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
+ displayName: _td("Allow fallback call assist server turn.matrix.org"),
+ // This is a tri-state value, where `null` means "prompt the user".
+ default: null,
+ },
};