/* Metro module 4796; source: actions/SelectedChannelActionCreators.tsx; dependencies: [4295, 1379, 4259, 661, 694, 1230, 4797, 9422, 2] */ function _fun41542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:6, offset: 0x01120ac8, size: 230 bytes, params: 8, frame: 19 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_7 = constantsModule.ME; constantsModule.PopoutWindowKeys; const env0_8 = constantsModule.Routes; object2 = {selectChannel: selectChannel, selectPrivateChannel: function(a0) { require(dependencyMap[5]).transitionTo(Routes.CHANNEL(ME, a0)); }, selectVoiceChannel: selectVoiceChannel, disconnect: disconnect}; (require(2) /* metro dependency 2 */).fileFinishedImporting('actions/SelectedChannelActionCreators.tsx'); exports.default = object2; } function selectChannel({guildId, channelId, messageId, jumpType, source, skipMessageFetch}) { // fn#41543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:178, offset: 0x01120bae, size: 121 bytes, params: 2, frame: 20 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SELECT', guildId: guildId === ME ? null : guildId, channelId: channelId, messageId: messageId, jumpType: jumpType, source: source, skipMessageFetch: skipMessageFetch}); } function selectVoiceChannel(a0) { // fn#41545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:457, offset: 0x01120c64, size: 165 bytes, params: 2, frame: 22 const value = a1; const value2 = a2; const value3 = a3; const value4 = undefined; const r6 = value !== value4 ? value : false; const r5 = value2 !== value4 ? value2 : false; const r4 = value3 !== value4 ? value3 : {}; const channel = ChannelStore.getChannel(a0); if (MediaEngineStore.isSupported()) { if (a0 != null) { MediaEngineStore.getMediaEngine().interact(); } (require(4797) /* metro dependency 4797: SelectedChannelActionCreatorsAdditionalNative */).selectVoiceChannelAdditional(a0, channel == null ? value4 : channel.getGuildId(), r6, r5, r4); } return value4; } function disconnect() { // fn#41546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:655, offset: 0x01120d09, size: 74 bytes, params: 1, frame: 14 const remoteSessionId = GameConsoleStore.getRemoteSessionId(); if (remoteSessionId != null) { (importAll(9422) /* metro dependency 9422: GameConsoleActionCreators */).remoteDisconnect(remoteSessionId); } this.selectVoiceChannel(null); }