Files
discord-decomp/sources/modules/channel/VoiceChannelBadgeExperiment.tsx
T
2026-07-28 01:06:53 +03:00

32 lines
2.5 KiB
TypeScript

/* Metro module 8441; source: modules/channel/VoiceChannelBadgeExperiment.tsx; dependencies: [4108, 4620, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ExperimentConstantsModule from '../experiments/ExperimentConstants.tsx'; /* Metro dependency 4108 */
import * as ExperimentsModule from '../experiments/index.tsx'; /* Metro dependency 4620 */
function _fun67008(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8626:6, offset: 0x01c12361, size: 259 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const CommonTriggerPoints = (ExperimentConstantsModule).CommonTriggerPoints;
let value = ExperimentsModule;
const createExperiment = value.createExperiment;
const VOICE_CALL = CommonTriggerPoints.VOICE_CALL;
value = Reflect.apply(createExperiment, value, [{'id': '2026-03_voice_badge', 'kind': 'guild',
'commonTriggerPoint': null, 'label': 'Display Voice Channel Badge', commonTriggerPoint: VOICE_CALL,
defaultConfig: {enabled: false}, treatments: [{'id': 0, 'label': 'Control', config: {enabled: false}}, {'id': 1,
'label': 'Show voice badges', config: {enabled: true}}]}]);
(FileImportTrackerModule).fileFinishedImporting('modules/channel/VoiceChannelBadgeExperiment.tsx');
exports.VoiceChannelBadgeExperiment = value;
exports.useVoiceChannelBadgeExperiment = useVoiceChannelBadgeExperiment;
exports.getVoiceChannelBadgeExperiment = getVoiceChannelBadgeExperiment;
function useVoiceChannelBadgeExperiment({guildId, location}) { // fn#67009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8626:544, offset: 0x01c12464, size: 53 bytes, params: 2, frame: 14
return env0_0.useExperiment({guildId: guildId, location: location}, {autoTrackExposure: true});
}
function getVoiceChannelBadgeExperiment({guildId, location}) { // fn#67010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8626:712, offset: 0x01c12499, size: 53 bytes, params: 2, frame: 14
return env0_0.getCurrentConfig({guildId: guildId, location: location}, {autoTrackExposure: true});
}
}
global.__d(_fun67008, 8441, [4108, 4620, 2]) /* metro module 8441, dependencies: [4108, 4620, 2] */;