Files
discord-decomp/sources/modules/headless_tasks/android/ToggleSelfMute.tsx
T
2026-07-27 16:20:00 +03:00

38 lines
2.4 KiB
TypeScript

/* Metro module 16264; source: modules/headless_tasks/android/ToggleSelfMute.tsx; dependencies: [1379, 16260, 6952, 10834, 2] */
function _fun125716(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:6, offset: 0x025e1b8e, size: 86 bytes, params: 8, frame: 14
const env0_0 = require;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
module.exports = function({channelId}) {
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun125718);
return value2 instanceof Object ? value2 : value;
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/ToggleSelfMute.tsx');
}
function exports_125717({channelId}) { // fn#125717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:67, offset: 0x025e1be4, size: 51 bytes, params: 2, frame: 11
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun125718);
return promise instanceof Object ? promise : value;
}
function _fun125718(a0) { // fn#125718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:97, offset: 0x025e1c17, size: 54 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const value = environment.__proto__;
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125719);
}
function _fun125719() { // fn#125719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:123, offset: 0x025e1c4d, size: 111 bytes, params: 1, frame: 15
let value = environment.__proto__.__proto__;
const channel = ChannelStore.getChannel(channelId);
const getMuteStates = (require(6952) /* metro dependency 6952: useMuteStates */).getMuteStates;
value = Reflect.apply(getMuteStates, value, [{channel: channel}]);
const voiceActionUtilsModule = require(10834) /* metro dependency 10834: VoiceActionUtils */;
voiceActionUtilsModule.createMuteHandler(value).onPress();
env0_0(true);
}