Files
discord-decomp/modules/gateway/PrivateChannelHidingExperiment.tsx
T
2026-11-01 12:12:55 +02:00

43 lines
1.3 KiB
TypeScript

// Metro module 12729 (f12730).
import { createApexExperiment } from "../experiments/apex/index";
import * as _PrivateChannelHidingExperimentCache from "./PrivateChannelHidingExperimentCache";
const apexExperiment = createApexExperiment({
name: "2026-02-private-channel-hiding",
kind: "user",
defaultConfig: {
enableObfuscation: false,
enableIntegrityCheck: false
},
variations: {
1: {
enableObfuscation: true,
enableIntegrityCheck: false
},
2: {
enableObfuscation: true,
enableIntegrityCheck: true
},
3: {
enableObfuscation: false,
enableIntegrityCheck: false
}
}
});
export const getCachedPrivateChannelObfuscation = _PrivateChannelHidingExperimentCache.getCachedPrivateChannelObfuscation;
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = _PrivateChannelHidingExperimentCache.PRIVATE_CHANNEL_OBFUSCATION_KEY;
export function isChannelMetadataObfuscationEnabled(a0) {
return apexExperiment.getConfig({
location: a0
}).enableObfuscation;
}
export function useIsChannelMetadataObfuscationEnabled(a0) {
return apexExperiment.useConfig({
location: a0
}).enableObfuscation;
}
export function isChannelMetadataIntegrityCheckEnabled(a0) {
return apexExperiment.getConfig({
location: a0
}).enableIntegrityCheck;
}