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

+45
View File
@@ -0,0 +1,45 @@
// Metro module 5001 (f5002).
import GameConsoleStore from "../modules/game_console/GameConsoleStore";
import ChannelStore from "../stores/ChannelStore";
import MediaEngineStore from "../stores/MediaEngineStore";
import { ME, Routes, PopoutWindowKeys } from "../Constants";
import Dispatcher from "../Dispatcher";
import { transitionTo } from "../modules/routing/router_utils";
import { selectVoiceChannelAdditional } from "./SelectedChannelActionCreatorsAdditional.native";
import { remoteDisconnect } from "../modules/game_console/GameConsoleActionCreators";
PopoutWindowKeys;
const r25 = {
selectChannel: (a0) => {
const { guildId, channelId } = a0;
Dispatcher.dispatch({
type: "CHANNEL_SELECT",
guildId: guildId !== ME ? guildId : null,
channelId,
messageId: a0.messageId,
jumpType: a0.jumpType,
source: a0.source,
skipMessageFetch: a0.skipMessageFetch
});
},
selectPrivateChannel: (a0) => {
transitionTo(Routes.CHANNEL(ME, a0));
},
selectVoiceChannel: function selectVoiceChannel(a0, r9 = false, r8 = false, r7 = {}) {
const channel = ChannelStore.getChannel(a0);
const r17 = channel == null ? void 0 : channel.getGuildId();
if (MediaEngineStore.isSupported()) {
if (a0 != null) {
MediaEngineStore.getMediaEngine().interact();
}
selectVoiceChannelAdditional(a0, r17, r9, r8, r7);
}
},
disconnect: function disconnect() {
const remoteSessionId = GameConsoleStore.getRemoteSessionId();
if (remoteSessionId != null) {
remoteDisconnect(remoteSessionId);
}
this.selectVoiceChannel(null);
}
};
export default r25;