// Module ID: 4980 // Function ID: 4981 // Dependencies: [4545, 1391, 4501, 676, 709, 1222, 4981, 9884, 2] // Module 4980 import dispatcherDefault from "dispatcher" /* 709 */; import transitionTo from "transitionTo" /* 1222 */; import selectVoiceChannelAdditional from "selectVoiceChannelAdditional" /* 4981 */; import disconnectRemoteAll from "disconnectRemote" /* 9884 */; import closure_4 from "set" /* 4545 */; import closure_5 from "ensureGuildLoaded" /* 1391 */; import closure_6 from "_detectH265HardwareDecode" /* 4501 */; import ME from "ME" /* 676 */; require = arg1; ({ ME: error, PopoutWindowKeys, Routes: closure_8 } = ME); const result = require("set").fileFinishedImporting("actions/SelectedChannelActionCreators.tsx"); export default { selectChannel(guildId) { guildId = guildId.guildId; ({ channelId, messageId, jumpType, source, skipMessageFetch } = guildId); let tmp = null; if (guildId !== closure_7) { tmp = guildId; } dispatcherDefault.dispatch({ type: "CHANNEL_SELECT", guildId: tmp, channelId, messageId, jumpType, source, skipMessageFetch }); }, selectPrivateChannel(id) { transitionTo.transitionTo(closure_8.CHANNEL(closure_7, id)); }, selectVoiceChannel(id, c1, flag2) { let flag = c1; if (c1 === undefined) { flag = false; } if (flag2 === undefined) { flag2 = false; } let obj = arg3; if (arg3 === undefined) { obj = {}; } channel = channel.getChannel(id); if (channel != null) { const guildId = channel.getGuildId(); } if (supported.isSupported()) { if (null != id) { const mediaEngine = supported.getMediaEngine(); mediaEngine.interact(); } const obj5 = selectVoiceChannelAdditional; const voiceChannelAdditional = obj5.selectVoiceChannelAdditional(id, guildId, flag, flag2, obj); } }, disconnect() { remoteSessionId = remoteSessionId.getRemoteSessionId(); if (null != remoteSessionId) { disconnectRemoteAll.remoteDisconnect(remoteSessionId); const obj = disconnectRemoteAll; } const voiceChannel = this.selectVoiceChannel(null); } };