Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
27 lines
917 B
TypeScript
27 lines
917 B
TypeScript
// Module ID: 18087
|
|
// Function ID: 18088
|
|
// Name: ToggleSelfMute
|
|
// Dependencies: [1958, 18083, 7452, 10134, 2]
|
|
|
|
// Module 18087 (ToggleSelfMute)
|
|
import useMuteStates from "useMuteStates" /* 7452 */;
|
|
import VoiceActionUtils from "VoiceActionUtils" /* 10134 */;
|
|
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18083 */;
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
|
|
|
require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/headless_tasks/android/ToggleSelfMute.tsx");
|
|
|
|
export default (channelId) => {
|
|
channelId = channelId.channelId;
|
|
return new Promise((arg0) => {
|
|
closure_0 = arg0;
|
|
HeadlessTaskUtilsDefault.awaitStorage(() => {
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
const muteStates = useMuteStates.getMuteStates({ channel });
|
|
VoiceActionUtils.createMuteHandler(muteStates).onPress();
|
|
closure_0(true);
|
|
});
|
|
});
|
|
};
|