// Module ID: 18021 // Function ID: 18022 // Name: SelectVoiceChannel // Dependencies: [1957, 4629, 18014, 5462, 4813, 4617, 2] // Module 18021 (SelectVoiceChannel) import transitionToChannel from "transitionToChannel" /* 4617 */; import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4813 */; import SelectedChannelActionCreatorsDefault from "SelectedChannelActionCreators" /* 5462 */; import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18014 */; import ChannelStore from "ChannelStore" /* 1957 */; import RTCConnectionStore from "RTCConnectionStore" /* 4629 */; require = fn; const size = fn(2); let result = size.fileFinishedImporting("modules/headless_tasks/android/SelectVoiceChannel.tsx"); export default (arg0) => { ({ channelId: require, connectToVoice: importDefault } = arg0); return new Promise((arg0) => { closure_0 = arg0; HeadlessTaskUtilsDefault.awaitStorage(() => { if (closure_2_1) { const voiceChannel = SelectedChannelActionCreatorsDefault.selectVoiceChannel(closure_2_0); } if (RTCConnectionStore.getChannelId() === closure_2_0) { const channel = ChannelStore.getChannel(tmp5); if (null != channel) { const result = PrivateChannelCallUtils.navigateToVoiceChannel(channel); } } else { transitionToChannel.transitionToChannel(tmp5); } closure_0(true); }); }); };