Store ICE fallback permission in device setting

This stores the ICE server fallback permission in a device setting so it is
remembered across sessions.

Part of https://github.com/matrix-org/matrix-react-sdk/pull/3309
This commit is contained in:
J. Ryan Stinnett 2019-08-14 14:02:25 +01:00
parent c1378f8e0b
commit 1c6312d999
5 changed files with 30 additions and 9 deletions

View file

@ -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,
},
};