decord/source/modules/headless_tasks/android/ToggleDeafen.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

27 lines
909 B
TypeScript

// Module ID: 17971
// Function ID: 17972
// Name: ToggleDeafen
// Dependencies: [1957, 17968, 10050, 10035, 2]
// Module 17971 (ToggleDeafen)
import VoiceActionUtils from "VoiceActionUtils" /* 10035 */;
import useDeafStates from "useDeafStates" /* 10050 */;
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 17968 */;
import ChannelStore from "ChannelStore" /* 1957 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/headless_tasks/android/ToggleDeafen.tsx");
export default (channelId) => {
channelId = channelId.channelId;
return new Promise((arg0) => {
closure_0 = arg0;
HeadlessTaskUtilsDefault.awaitStorage(() => {
const channel = ChannelStore.getChannel(channelId);
const deafStates = useDeafStates.getDeafStates(channel);
VoiceActionUtils.createDeafHandler(deafStates).onPress();
closure_0(true);
});
});
};