// Module ID: 18206 // Function ID: 18207 // Name: ToggleDeafen // Dependencies: [1958, 18203, 10168, 10153, 2] // Module 18206 (ToggleDeafen) import VoiceActionUtils from "VoiceActionUtils" /* 10153 */; import useDeafStates from "useDeafStates" /* 10168 */; import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18203 */; import ChannelStore from "ChannelStore" /* 1958 */; 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); }); }); };