decord/source/modules/headless_tasks/android/SelectVoiceChannel.tsx

38 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 18021
// Function ID: 18022
// Name: SelectVoiceChannel
// Dependencies: [1957, 4629, 18014, 5462, 4813, 4617, 2]
2026-07-20 16:05:17 +00:00
// 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 */;
2026-07-23 10:11:24 +00:00
require = fn;
const size = fn(2);
let result = size.fileFinishedImporting("modules/headless_tasks/android/SelectVoiceChannel.tsx");
2026-07-20 16:05:17 +00:00
export default (arg0) => {
2026-07-23 10:11:24 +00:00
({ channelId: require, connectToVoice: importDefault } = arg0);
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
HeadlessTaskUtilsDefault.awaitStorage(() => {
if (closure_2_1) {
const voiceChannel = SelectedChannelActionCreatorsDefault.selectVoiceChannel(closure_2_0);
2026-07-20 16:05:17 +00:00
}
if (RTCConnectionStore.getChannelId() === closure_2_0) {
const channel = ChannelStore.getChannel(tmp5);
2026-07-20 16:05:17 +00:00
if (null != channel) {
const result = PrivateChannelCallUtils.navigateToVoiceChannel(channel);
2026-07-20 16:05:17 +00:00
}
} else {
transitionToChannel.transitionToChannel(tmp5);
2026-07-20 16:05:17 +00:00
}
closure_0(true);
2026-07-20 16:05:17 +00:00
});
});
};