Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,34 @@
|
||||
/* Metro module 10645; source: modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx; dependencies: [4295, 1312, 1226, 1867, 4297, 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});
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
const unsyncedUserSettingsStore = importDefault(1312) /* metro dependency 1312: UnsyncedUserSettingsStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
(require(2) /* metro dependency 2 */).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 value4;
|
||||
if (!UnsyncedUserSettingsStore.disableVoiceChannelChangeAlert) {
|
||||
var remoteSessionId = GameConsoleStore.getRemoteSessionId();
|
||||
var getVoiceStateForSession = VoiceStateStore.getVoiceStateForSession;
|
||||
var getId = AuthenticationStore.getId;
|
||||
if (Reflect.apply(getVoiceStateForSession, VoiceStateStore, [Reflect.apply(getId, AuthenticationStore, []),
|
||||
remoteSessionId]) != null) {
|
||||
return false;
|
||||
}
|
||||
if (VoiceStateStore.isCurrentClientInVoiceChannel()) {
|
||||
if (VoiceStateStore.isInChannel(a0.id)) {
|
||||
return false;
|
||||
}
|
||||
value4 = GuildStore.getGuild(a0.getGuildId());
|
||||
return value4?.afkChannelId == null || !VoiceStateStore.isInChannel(value4.afkChannelId);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user