matrix-react-sdk
Version:
SDK for matrix.org using React
19 lines (18 loc) • 819 B
TypeScript
import { MatrixClient } from "matrix-js-sdk/src/matrix";
import SettingController from "./SettingController";
import { SettingLevel } from "../SettingLevel";
/**
* A controller for the "exclude_insecure_devices" setting, which will
* update the crypto stack's device isolation mode on change.
*/
export default class DeviceIsolationModeController extends SettingController {
onChange(level: SettingLevel, roomId: string, newValue: any): void;
}
/**
* Set the crypto stack's device isolation mode based on the current value of the
* "exclude_insecure_devices" setting.
*
* @param client - MatrixClient to update to the new setting.
* @param settingValue - value of the "exclude_insecure_devices" setting.
*/
export declare function setDeviceIsolationMode(client: MatrixClient, settingValue: boolean): void;