// Module ID: 12960 // Function ID: 12961 // Name: shouldShowVoiceChannelChangeConfirmation // Dependencies: [4591, 1185, 502, 1979, 4593, 2] // Exports: shouldShowVoiceChannelChangeConfirmation // Module 12960 (shouldShowVoiceChannelChangeConfirmation) import GameConsoleStore from "GameConsoleStore" /* 4591 */; import UnsyncedUserSettingsStore from "UnsyncedUserSettingsStore" /* 1185 */; import AuthenticationStore from "AuthenticationStore" /* 502 */; import GuildStore from "GuildStore" /* 1979 */; import VoiceStateStore from "VoiceStateStore" /* 4593 */; const size = fn(2); const result = size.fileFinishedImporting("modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx"); export const shouldShowVoiceChannelChangeConfirmation = function shouldShowVoiceChannelChangeConfirmation(id) { if (UnsyncedUserSettingsStore.disableVoiceChannelChangeAlert) { return false; } else { const remoteSessionId = GameConsoleStore.getRemoteSessionId(); if (null != VoiceStateStore.getVoiceStateForSession(AuthenticationStore.getId(), remoteSessionId)) { return false; } else if (obj.isCurrentClientInVoiceChannel()) { if (obj.isInChannel(id.id)) { return false; } else { const guild = GuildStore.getGuild(id.getGuildId()); let afkChannelId; if (guild != null) { afkChannelId = guild.afkChannelId; } return null == afkChannelId || !obj.isInChannel(guild.afkChannelId); } } else { return false; } } };