27 lines
1.8 KiB
TypeScript
27 lines
1.8 KiB
TypeScript
// Module ID: 13562
|
|
// Function ID: 13563
|
|
// Name: getCachedPrivateChannelObfuscation
|
|
// Dependencies: [1467, 2, 13563]
|
|
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled, useIsChannelMetadataObfuscationEnabled
|
|
|
|
// Module 13562 (getCachedPrivateChannelObfuscation)
|
|
import set from "set" /* 2 */;
|
|
import PRIVATE_CHANNEL_OBFUSCATION_KEY from "PRIVATE_CHANNEL_OBFUSCATION_KEY" /* 13563 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1467 */;
|
|
|
|
const obj = { 1: null, 2: { enableObfuscation: true, enableIntegrityCheck: false }, 3: { enableObfuscation: true, enableIntegrityCheck: true } };
|
|
obj[3] = { enableObfuscation: false, enableIntegrityCheck: false };
|
|
let closure_0 = ApexExperiment.createApexExperiment({ name: "2026-02-private-channel-hiding", kind: "user", defaultConfig: { enableObfuscation: false, enableIntegrityCheck: false }, variations: obj });
|
|
const result = set.fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
|
|
|
|
export const getCachedPrivateChannelObfuscation = PRIVATE_CHANNEL_OBFUSCATION_KEY.getCachedPrivateChannelObfuscation;
|
|
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = PRIVATE_CHANNEL_OBFUSCATION_KEY.PRIVATE_CHANNEL_OBFUSCATION_KEY;
|
|
export const isChannelMetadataObfuscationEnabled = function isChannelMetadataObfuscationEnabled(GatewaySocket) {
|
|
return store.getConfig({ location: GatewaySocket }).enableObfuscation;
|
|
};
|
|
export const useIsChannelMetadataObfuscationEnabled = function useIsChannelMetadataObfuscationEnabled(App) {
|
|
return store.useConfig({ location: App }).enableObfuscation;
|
|
};
|
|
export const isChannelMetadataIntegrityCheckEnabled = function isChannelMetadataIntegrityCheckEnabled(scheduleIntegrityCheck) {
|
|
return store.getConfig({ location: scheduleIntegrityCheck }).enableIntegrityCheck;
|
|
};
|