Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
68 lines
2.5 KiB
TypeScript
68 lines
2.5 KiB
TypeScript
// Module ID: 5909
|
|
// Function ID: 5910
|
|
// Name: SelectedChannelActionCreators
|
|
// Dependencies: [4862, 2044, 1993, 1074, 5910, 573, 1101, 9438, 2]
|
|
|
|
// Module 5909 (SelectedChannelActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import router_utils from "router_utils" /* 1101 */;
|
|
import SelectedChannelActionCreatorsAdditional from "SelectedChannelActionCreatorsAdditional" /* 5910 */;
|
|
import GameConsoleActionCreatorsAll from "GameConsoleActionCreators" /* 9438 */;
|
|
import GameConsoleStore from "GameConsoleStore" /* 4862 */;
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
import MediaEngineStore from "MediaEngineStore" /* 1993 */;
|
|
|
|
require = fn;
|
|
const Constants = fn(1074);
|
|
({ ME: closure_7, PopoutWindowKeys, Routes: closure_8 } = Constants);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("actions/SelectedChannelActionCreators.tsx");
|
|
|
|
export default {
|
|
selectChannel(guildId) {
|
|
guildId = guildId.guildId;
|
|
({ channelId, messageId, jumpType, source, skipMessageFetch, opensChannel } = guildId);
|
|
const channelSelectionOrigin = SelectedChannelActionCreatorsAdditional.getChannelSelectionOrigin();
|
|
({ fromGuildId, fromChannelId } = channelSelectionOrigin);
|
|
let tmp2 = null;
|
|
if (guildId !== React5) {
|
|
tmp2 = guildId;
|
|
}
|
|
DispatcherDefault.dispatch({ type: "CHANNEL_SELECT", guildId: tmp2, channelId, fromGuildId, fromChannelId, messageId, jumpType, source, skipMessageFetch, opensChannel });
|
|
},
|
|
selectPrivateChannel(id) {
|
|
router_utils.transitionTo(React6.CHANNEL(React5, id));
|
|
},
|
|
selectVoiceChannel(id, MediaEngineStore, flag2) {
|
|
let flag = MediaEngineStore;
|
|
if (MediaEngineStore === undefined) {
|
|
flag = false;
|
|
}
|
|
if (flag2 === undefined) {
|
|
flag2 = false;
|
|
}
|
|
let obj = arg3;
|
|
if (arg3 === undefined) {
|
|
obj = {};
|
|
}
|
|
const channel = ChannelStore.getChannel(id);
|
|
if (channel != null) {
|
|
const guildId = channel.getGuildId();
|
|
}
|
|
if (MediaEngineStore.isSupported()) {
|
|
if (null != id) {
|
|
const mediaEngine = MediaEngineStore.getMediaEngine();
|
|
mediaEngine.interact();
|
|
}
|
|
const obj5 = SelectedChannelActionCreatorsAdditional;
|
|
const voiceChannelAdditional = obj5.selectVoiceChannelAdditional(id, guildId, flag, flag2, obj);
|
|
}
|
|
},
|
|
disconnect() {
|
|
const remoteSessionId = GameConsoleStore.getRemoteSessionId();
|
|
if (null != remoteSessionId) {
|
|
GameConsoleActionCreatorsAll.remoteDisconnect(remoteSessionId);
|
|
}
|
|
const voiceChannel = this.selectVoiceChannel(null);
|
|
}
|
|
};
|