2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 18086
|
|
|
|
|
// Function ID: 18087
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ToggleDeafen
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1958, 18083, 10149, 10134, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 18086 (ToggleDeafen)
|
|
|
|
|
import VoiceActionUtils from "VoiceActionUtils" /* 10134 */;
|
|
|
|
|
import useDeafStates from "useDeafStates" /* 10149 */;
|
|
|
|
|
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18083 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/headless_tasks/android/ToggleDeafen.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;
|
2026-09-10 05:38:07 +00:00
|
|
|
HeadlessTaskUtilsDefault.awaitStorage(() => {
|
|
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
|
|
|
const deafStates = useDeafStates.getDeafStates(channel);
|
|
|
|
|
VoiceActionUtils.createDeafHandler(deafStates).onPress();
|
|
|
|
|
closure_0(true);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|