// Module ID: 5236 // Function ID: 5237 // Dependencies: [4397, 1391, 4431, 676, 709, 1222, 5237, 10966, 2] // Module 5236 import dispatcherDefault from "dispatcher" /* 709 */; import transitionTo from "transitionTo" /* 1222 */; import selectVoiceChannelAdditional from "selectVoiceChannelAdditional" /* 5237 */; import disconnectRemoteAll from "disconnectRemote" /* 10966 */; import closure_4 from "set" /* 4397 */; import closure_5 from "ensureGuildLoaded" /* 1391 */; import closure_6 from "_detectH265HardwareDecode" /* 4431 */; 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); } };