2026-09-14 20:04:03 +00:00
|
|
|
// Module ID: 18049
|
|
|
|
|
// Function ID: 18050
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ToggleSelfMute
|
2026-09-14 20:04:03 +00:00
|
|
|
// Dependencies: [1957, 18045, 7448, 10132, 2]
|
2026-07-22 07:54:56 +00:00
|
|
|
|
2026-09-14 20:04:03 +00:00
|
|
|
// Module 18049 (ToggleSelfMute)
|
2026-09-12 13:45:10 +00:00
|
|
|
import useMuteStates from "useMuteStates" /* 7448 */;
|
|
|
|
|
import VoiceActionUtils from "VoiceActionUtils" /* 10132 */;
|
2026-09-14 20:04:03 +00:00
|
|
|
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18045 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/headless_tasks/android/ToggleSelfMute.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 muteStates = useMuteStates.getMuteStates({ channel });
|
|
|
|
|
VoiceActionUtils.createMuteHandler(muteStates).onPress();
|
|
|
|
|
closure_0(true);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|