Files
discord-decomp/sources/modules/channel/VoiceChannelHoistingExperiment.tsx
T
2026-07-27 16:20:00 +03:00

23 lines
1.9 KiB
TypeScript

/* Metro module 15684; source: modules/channel/VoiceChannelHoistingExperiment.tsx; dependencies: [4108, 4620, 2] */
function _fun120331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15892:6, offset: 0x025282ed, size: 267 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const CommonTriggerPoints = (require(4108) /* metro dependency 4108: ExperimentConstants */).CommonTriggerPoints;
let value = require(4620) /* metro dependency 4620: experiments */;
const createExperiment = value.createExperiment;
const VOICE_CALL = CommonTriggerPoints.VOICE_CALL;
value = Reflect.apply(createExperiment, value, [{'kind': 'guild', 'id': '2025-12_voice_channel_hoisting',
'label': 'Voice Channel Hoisting', commonTriggerPoint: VOICE_CALL, defaultConfig: {'enableWaveformIcon': false,
'enableHighlight': false}, treatments: [{'id': 1, 'label': 'Both waveform and highlight',
config: {'enableWaveformIcon': true, 'enableHighlight': true}}, {'id': 2, 'label': 'Waveform icon only',
config: {'enableWaveformIcon': true, 'enableHighlight': false}}]}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/VoiceChannelHoistingExperiment.tsx');
exports.VoiceChannelHoistingExperiment = value;
exports.useVoiceChannelHoistingExperiment = useVoiceChannelHoistingExperiment;
}
function useVoiceChannelHoistingExperiment(a0, a1) { // fn#120332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15892:670, offset: 0x025283f8, size: 46 bytes, params: 3, frame: 14
return env0_0.useExperiment({guildId: a0, location: a1}, {autoTrackExposure: false});
}