This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,28 @@
// Metro module 16640 (f16641).
import RTCConnectionStore from "../../stores/RTCConnectionStore";
import VoicePanelStore from "./VoicePanelStore";
import AutomaticLifecycleManager from "../../lib/AutomaticLifecycleManager";
class VoicePanelManager extends AutomaticLifecycleManager {
actions = {
VOICE_CHANNEL_SELECT: () => {
const channelId = RTCConnectionStore.getChannelId();
if (channelId != null) {
const state = VoicePanelStore.getState();
if (!state.channels.has(channelId)) {
state.openChannel(channelId);
}
}
},
RTC_CONNECTION_STATE: () => {
const channelId = RTCConnectionStore.getChannelId();
if (channelId != null) {
const state = VoicePanelStore.getState();
if (!state.channels.has(channelId)) {
state.openChannel(channelId);
}
}
}
};
}
const voicePanelManager = new VoicePanelManager();
export default voicePanelManager;