2026-09-25 08:38:05 +00:00
|
|
|
// Module ID: 17595
|
|
|
|
|
// Function ID: 17596
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: VoicePanelManager
|
2026-09-25 08:38:05 +00:00
|
|
|
// Dependencies: [2044, 4852, 5037, 6534, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-25 08:38:05 +00:00
|
|
|
// Module 17595 (VoicePanelManager)
|
2026-09-24 10:59:02 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4852 */;
|
|
|
|
|
import VoicePanelStore from "VoicePanelStore" /* 5037 */;
|
2026-09-25 08:38:05 +00:00
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6534 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const prototype = function VoicePanelManager() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
|
|
|
applyArgumentsResult.actions = {
|
|
|
|
|
VOICE_CHANNEL_SELECT() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channelId = RTCConnectionStore.getChannelId();
|
2026-07-29 08:29:29 +00:00
|
|
|
if (null != channelId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const state = VoicePanelStore.getState();
|
2026-09-19 06:52:51 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
|
|
|
let isGuildStageVoiceResult;
|
|
|
|
|
if (channel != null) {
|
|
|
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
|
|
|
|
state.closeChannel(channelId);
|
|
|
|
|
} else {
|
|
|
|
|
const channels = state.channels;
|
|
|
|
|
if (!channels.has(channelId)) {
|
|
|
|
|
state.openChannel(channelId);
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
RTC_CONNECTION_STATE() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channelId = RTCConnectionStore.getChannelId();
|
2026-07-29 08:29:29 +00:00
|
|
|
if (null != channelId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const state = VoicePanelStore.getState();
|
2026-09-19 06:52:51 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
|
|
|
let isGuildStageVoiceResult;
|
|
|
|
|
if (channel != null) {
|
|
|
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
|
|
|
|
state.closeChannel(channelId);
|
|
|
|
|
} else {
|
|
|
|
|
const channels = state.channels;
|
|
|
|
|
if (!channels.has(channelId)) {
|
|
|
|
|
state.openChannel(channelId);
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}.prototype;
|
|
|
|
|
class prototype extends tmp2 {
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const prototype1 = new prototype();
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/voice_panel/VoicePanelManager.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
export default prototype1;
|