diff --git a/src/tchap/util/TchapUIFeature.ts b/src/tchap/util/TchapUIFeature.ts index 0af8523906..1edf29dbfc 100644 --- a/src/tchap/util/TchapUIFeature.ts +++ b/src/tchap/util/TchapUIFeature.ts @@ -2,8 +2,6 @@ * Tchap UI Feature flags */ -import SdkConfig from "matrix-react-sdk/src/SdkConfig"; - export default class TchapUIFeature { /** * This flag controls weither space related settings should be displayed or not. It differs from the flag UIComponent.CreateSpaces. @@ -26,43 +24,4 @@ export default class TchapUIFeature { */ public static activateClearCacheAndReloadAtVersion4 = true; - /** - * @deprecated - * This flag controls whether to activate cross-signing and secure storage. It is not static because the MatrixClient - * needs to be initialized to access the config.json (where the flag is set) - */ - public static isCrossSigningAndSecureStorageActive = (): Boolean => { - //retrieve the feature flag from the config.json features flag section. - //beware SdkConfig does not like to be invoked before the MatrixClient is initialized - // const isCrossSigningAndSecureStorageActive = - // SdkConfig.get("features")["tchap_activate_cross_signing_and_secure_storage"]; - // console.log( - // ":tchap: tchap_activate_cross_signing_and_secure_storage from config.json: ", - // isCrossSigningAndSecureStorageActive, - // ); - const isCrossSigningAndSecureStorageActive = true; - return isCrossSigningAndSecureStorageActive; - }; - - /** - * @deprecated - * This flag activates cross-signing and secure storage. But it also hides the xsss setup toast. - * needs to be initialized to access the config.json (where the flag is set) - */ - public static isCrossSigningSetupToastDisabled = (): Boolean => { - //retrieve the feature flag from the config.json features flag section. - //beware SdkConfig does not like to be invoked before the MatrixClient is initialized - //const isCrossSigningSetupToastDisabled = SdkConfig.get("features")["tchap_disable_cross_signing_setup_toast"]; - // console.log( - // ":tchap: tchap_disable_cross_signing_setup_toast from config.json: ", - // isCrossSigningSetupToastDisabled, - // ); - const isCrossSigningSetupToastDisabled = false;//cross signing setup toast must be activated - return isCrossSigningSetupToastDisabled; - }; - - /** - * This flag controls whether to force incoming key legacy verification (usefull for older mobile device than android 2.6, ios 2.2.3) - */ - public static forceLegacyIncomingRoomKeyVerification = false; }