/* Metro module 10645; source: modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx; dependencies: [4295, 1312, 1226, 1867, 4297, 2] */ import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */ import UnsyncedUserSettingsStore from '../user_settings/UnsyncedUserSettingsStore.tsx'; /* Metro dependency 1312 */ import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */ import GameConsoleStore from '../game_console/GameConsoleStore.tsx'; /* Metro dependency 4295 */ import VoiceStateStore from '../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun81893(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10831:6, offset: 0x01ee300f, size: 170 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx'); exports.shouldShowVoiceChannelChangeConfirmation = shouldShowVoiceChannelChangeConfirmation; function shouldShowVoiceChannelChangeConfirmation(a0) { // fn#81894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10831:283, offset: 0x01ee30b9, size: 204 bytes, params: 2, frame: 16 var guildStoreBinding; var value4; if (!UnsyncedUserSettingsStore.disableVoiceChannelChangeAlert) { var remoteSessionId = GameConsoleStore.getRemoteSessionId(); var voiceStateStoreBinding = VoiceStateStore; var getVoiceStateForSession = voiceStateStoreBinding.getVoiceStateForSession; var authenticationStoreBinding = AuthenticationStore; var getId = authenticationStoreBinding.getId; if (Reflect.apply(getVoiceStateForSession, voiceStateStoreBinding, [Reflect.apply(getId, authenticationStoreBinding, []), remoteSessionId]) != null) { return false; } if (Reflect.apply(VoiceStateStore.isCurrentClientInVoiceChannel, voiceStateStoreBinding, [])) { voiceStateStoreBinding = VoiceStateStore; if (voiceStateStoreBinding.isInChannel(a0.id)) { return false; } guildStoreBinding = GuildStore; value4 = guildStoreBinding.getGuild(a0.getGuildId()); return value4?.afkChannelId == null || !VoiceStateStore.isInChannel(value4.afkChannelId); } } return false; } } global.__d(_fun81893, 10645, [4295, 1312, 1226, 1867, 4297, 2]) /* metro module 10645, dependencies: [4295, 1312, 1226, 1867, 4297, 2] */;