decord/alpha/source/actions/SelectedChannelActionCreators.tsx

88 lines
3.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 5889
// Function ID: 5890
// Name: SelectedChannelActionCreators
2026-10-10 08:08:14 +00:00
// Dependencies: [5111, 2065, 2012, 1085, 5890, 584, 1112, 11111, 2]
2026-07-23 10:11:24 +00:00
2026-10-10 08:08:14 +00:00
// Module 5889 (SelectedChannelActionCreators)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import router_utils from "router_utils" /* 1112 */;
2026-10-10 08:08:14 +00:00
import SelectedChannelActionCreatorsAdditional from "SelectedChannelActionCreatorsAdditional" /* 5890 */;
import GameConsoleActionCreatorsAll from "GameConsoleActionCreators" /* 11111 */;
import GameConsoleStore from "GameConsoleStore" /* 5111 */;
import ChannelStore from "ChannelStore" /* 2065 */;
2026-10-09 10:00:15 +00:00
import MediaEngineStore from "MediaEngineStore" /* 2012 */;
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
let PopoutWindowKeys;
let metroImportAll;
let metroImportDefault;
({ ME: metroImportDefault, PopoutWindowKeys, Routes: metroImportAll } = Constants);
let obj = {
2026-07-20 16:05:17 +00:00
selectChannel(guildId) {
2026-10-03 08:58:59 +00:00
let channelId;
let fromChannelId;
let fromGuildId;
2026-10-06 11:16:32 +00:00
let isAppStartupNavigation;
2026-10-03 08:58:59 +00:00
let jumpType;
let messageId;
let opensChannel;
let skipMessageFetch;
let source;
2026-07-20 16:05:17 +00:00
guildId = guildId.guildId;
2026-10-06 11:16:32 +00:00
({ channelId, messageId, jumpType, source, skipMessageFetch, opensChannel, isAppStartupNavigation } = guildId);
2026-10-03 08:58:59 +00:00
const obj = SelectedChannelActionCreatorsAdditional;
const channelSelectionOrigin = obj.getChannelSelectionOrigin();
2026-09-03 10:05:34 +00:00
({ fromGuildId, fromChannelId } = channelSelectionOrigin);
2026-10-03 08:58:59 +00:00
let tmp3 = null;
const dispatch = DispatcherDefault.dispatch;
DispatcherDefault;
if (guildId !== metroImportDefault) {
tmp3 = guildId;
2026-07-20 16:05:17 +00:00
}
2026-10-06 11:16:32 +00:00
dispatch({ type: "CHANNEL_SELECT", guildId: tmp3, channelId, fromGuildId, fromChannelId, messageId, jumpType, source, skipMessageFetch, opensChannel, isAppStartupNavigation });
2026-07-20 16:05:17 +00:00
},
selectPrivateChannel(id) {
2026-10-03 08:58:59 +00:00
const obj = router_utils;
obj.transitionTo(metroImportAll.CHANNEL(metroImportDefault, id));
2026-07-20 16:05:17 +00:00
},
selectVoiceChannel(id, MediaEngineStore, flag2) {
2026-10-03 08:58:59 +00:00
let guildId;
let flag = MediaEngineStore;
if (MediaEngineStore === undefined) {
2026-07-20 16:05:17 +00:00
flag = false;
}
if (flag2 === undefined) {
flag2 = false;
}
2026-07-29 08:29:29 +00:00
let obj = arg3;
if (arg3 === undefined) {
2026-07-20 16:05:17 +00:00
obj = {};
}
const channel = ChannelStore.getChannel(id);
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-10-03 08:58:59 +00:00
guildId = channel.getGuildId();
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
const obj3 = MediaEngineStore;
if (MediaEngineStore.isSupported()) {
2026-07-29 08:29:29 +00:00
if (null != id) {
2026-10-03 08:58:59 +00:00
const mediaEngine = obj3.getMediaEngine();
2026-07-20 16:05:17 +00:00
mediaEngine.interact();
}
const obj5 = SelectedChannelActionCreatorsAdditional;
2026-07-29 08:29:29 +00:00
const voiceChannelAdditional = obj5.selectVoiceChannelAdditional(id, guildId, flag, flag2, obj);
2026-07-20 16:05:17 +00:00
}
},
disconnect() {
const remoteSessionId = GameConsoleStore.getRemoteSessionId();
2026-07-20 16:05:17 +00:00
if (null != remoteSessionId) {
2026-10-03 08:58:59 +00:00
const obj = GameConsoleActionCreatorsAll;
obj.remoteDisconnect(remoteSessionId);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const voiceChannel = this.selectVoiceChannel(null);
2026-07-20 16:05:17 +00:00
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("actions/SelectedChannelActionCreators.tsx");
export default obj;