Skip to content

Commit

Permalink
remove unused feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
odelcroi committed Aug 23, 2023
1 parent d5af72b commit 4fdf323
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions src/tchap/util/TchapUIFeature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

0 comments on commit 4fdf323

Please sign in to comment.