Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
27 lines
909 B
TypeScript
27 lines
909 B
TypeScript
// Module ID: 18048
|
|
// Function ID: 18049
|
|
// Name: ToggleDeafen
|
|
// Dependencies: [1957, 18045, 10147, 10132, 2]
|
|
|
|
// Module 18048 (ToggleDeafen)
|
|
import VoiceActionUtils from "VoiceActionUtils" /* 10132 */;
|
|
import useDeafStates from "useDeafStates" /* 10147 */;
|
|
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18045 */;
|
|
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);
|
|
});
|
|
});
|
|
};
|