25 lines
1.7 KiB
TypeScript
25 lines
1.7 KiB
TypeScript
// Module ID: 13003
|
|
// Function ID: 13004
|
|
// Name: getCachedPrivateChannelObfuscation
|
|
// Dependencies: [1471, 2, 13004]
|
|
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled, useIsChannelMetadataObfuscationEnabled
|
|
|
|
// Module 13003 (getCachedPrivateChannelObfuscation)
|
|
import ApexExperiment from "ApexExperiment";
|
|
|
|
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 = require("PRIVATE_CHANNEL_OBFUSCATION_KEY").fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
|
|
|
|
export const getCachedPrivateChannelObfuscation = require("PRIVATE_CHANNEL_OBFUSCATION_KEY").getCachedPrivateChannelObfuscation;
|
|
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = require("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;
|
|
};
|