Files
discord-decomp/sources/modules/gateway/PrivateChannelHidingExperiment.tsx
2026-07-28 01:06:53 +03:00

42 lines
3.3 KiB
TypeScript

/* Metro module 12526; source: modules/gateway/PrivateChannelHidingExperiment.tsx; dependencies: [1854, 2, 12527] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
import * as PrivateChannelHidingExperimentCacheModule from './PrivateChannelHidingExperimentCache.tsx'; /* Metro dependency 12527 */
function _fun95446(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:6, offset: 0x02146929, size: 279 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (ApexModule).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}}});
(FileImportTrackerModule).fileFinishedImporting('modules/gateway/PrivateChannelHidingExperiment.tsx');
const getCachedPrivateChannelObfuscation = (PrivateChannelHidingExperimentCacheModule).getCachedPrivateChannelObfuscation;
exports.getCachedPrivateChannelObfuscation = getCachedPrivateChannelObfuscation;
const PRIVATE_CHANNEL_OBFUSCATION_KEY = (PrivateChannelHidingExperimentCacheModule).PRIVATE_CHANNEL_OBFUSCATION_KEY;
exports.PRIVATE_CHANNEL_OBFUSCATION_KEY = PRIVATE_CHANNEL_OBFUSCATION_KEY;
exports.isChannelMetadataObfuscationEnabled = isChannelMetadataObfuscationEnabled;
exports.useIsChannelMetadataObfuscationEnabled = useIsChannelMetadataObfuscationEnabled;
exports.isChannelMetadataIntegrityCheckEnabled = isChannelMetadataIntegrityCheckEnabled;
function isChannelMetadataObfuscationEnabled(a0) { // fn#95447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:677, offset: 0x02146a40, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enableObfuscation;
}
function useIsChannelMetadataObfuscationEnabled(a0) { // fn#95448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:818, offset: 0x02146a63, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).enableObfuscation;
}
function isChannelMetadataIntegrityCheckEnabled(a0) { // fn#95449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:962, offset: 0x02146a86, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enableIntegrityCheck;
}
}
global.__d(_fun95446, 12526, [1854, 2, 12527]) /* metro module 12526, dependencies: [1854, 2, 12527] */;