decord/source/modules/headless_tasks/android/ToggleSelfMute.tsx

25 lines
784 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 17246
// Function ID: 17247
2026-07-20 16:05:17 +00:00
// Name: promise
2026-08-24 06:08:38 +00:00
// Dependencies: [1391, 17242, 7343, 12621, 2]
2026-07-22 07:54:56 +00:00
2026-08-24 06:08:38 +00:00
// Module 17246 (promise)
import closure_3 from "ensureGuildLoaded" /* 1391 */;
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/headless_tasks/android/ToggleSelfMute.tsx");
2026-07-20 16:05:17 +00:00
export default (channelId) => {
2026-07-23 10:11:24 +00:00
channelId = channelId.channelId;
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1_1(closure_1_2[1]).awaitStorage(() => {
const channel = closure_2_3.getChannel(callback);
const muteStates = channelId(closure_2_2[2]).getMuteStates({ channel });
const obj = channelId(closure_2_2[2]);
channelId(closure_2_2[3]).createMuteHandler(muteStates).onPress();
2026-07-23 10:11:24 +00:00
callback(true);
2026-07-20 16:05:17 +00:00
});
});
};