decord/source/modules/voice_panel/VoicePanelManager.native.tsx

44 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 17836
// Function ID: 17837
// Name: VoicePanelManager
// Dependencies: [4597, 4782, 7132, 2]
2026-07-23 10:11:24 +00:00
// Module 17836 (VoicePanelManager)
import RTCConnectionStore from "RTCConnectionStore" /* 4597 */;
import VoicePanelStore from "VoicePanelStore" /* 4782 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7132 */;
2026-07-20 16:05:17 +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() {
const channelId = RTCConnectionStore.getChannelId();
2026-07-29 08:29:29 +00:00
if (null != channelId) {
const state = VoicePanelStore.getState();
2026-07-29 08:29:29 +00:00
const channels = state.channels;
if (!channels.has(channelId)) {
state.openChannel(channelId);
}
}
},
RTC_CONNECTION_STATE() {
const channelId = RTCConnectionStore.getChannelId();
2026-07-29 08:29:29 +00:00
if (null != channelId) {
const state = VoicePanelStore.getState();
2026-07-29 08:29:29 +00:00
const channels = state.channels;
if (!channels.has(channelId)) {
state.openChannel(channelId);
}
}
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
}
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
export default prototype1;