258 lines
13 KiB
TypeScript
258 lines
13 KiB
TypeScript
/* Metro module 4797; source: actions/SelectedChannelActionCreatorsAdditional.native.tsx; dependencies: [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080, 6272, 1962, 12366, 491, 694, 2] */
|
|
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import GuildStore from '../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import SelectedChannelStore from '../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
|
|
import PermissionStore from '../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
|
|
import VoiceStateStore from '../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
|
|
import GuildVerificationStore from '../stores/GuildVerificationStore.tsx'; /* Metro dependency 4798 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as Module00491Module from '../by-id/module-00491.js'; /* Metro dependency 491 */
|
|
import * as StageChannelsConstantsModule from '../modules/stage_channels/StageChannelsConstants.tsx'; /* Metro dependency 4799 */
|
|
|
|
function _fun41547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:6, offset: 0x01120d53, size: 234 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/SelectedChannelActionCreatorsAdditional.native.tsx');
|
|
exports.selectVoiceChannelAdditional = selectVoiceChannelAdditional;
|
|
function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:325, offset: 0x01120e3d, size: 512 bytes, params: 3, frame: 23
|
|
var moduleValue;
|
|
var isChannelFull2;
|
|
var guildVerificationStoreBinding;
|
|
var value6;
|
|
var moduleValue2;
|
|
var value7;
|
|
var moduleValue3;
|
|
var defaultImport2;
|
|
const value = a2;
|
|
const value2 = a3;
|
|
const value3 = a4;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const r4 = value !== undefined ? value : false;
|
|
const r3 = value2 !== undefined ? value2 : false;
|
|
const r0 = value3 !== undefined ? value3 : {};
|
|
if (r0.lockVoiceStateForResume !== undefined) {
|
|
}
|
|
if (r0.bypassIdleUpdate !== undefined) {
|
|
}
|
|
const channel = ChannelStore.getChannel(a0);
|
|
const currentUser = UserStore.getCurrentUser();
|
|
if (currentUser == null) {
|
|
return undefined;
|
|
}
|
|
if (channel == null) {
|
|
if (channel == null) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
moduleValue = require(dependencyMap[8]);
|
|
isChannelFull2 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
|
|
guildVerificationStoreBinding = GuildVerificationStore;
|
|
value6 = guildVerificationStoreBinding.getCheck(channel.guild_id);
|
|
} else {
|
|
if (channel.nsfw) {
|
|
if (currentUser.nsfwAllowed) {
|
|
if (channel == null) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
moduleValue = require(dependencyMap[8]);
|
|
isChannelFull2 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
|
|
guildVerificationStoreBinding = GuildVerificationStore;
|
|
value6 = guildVerificationStoreBinding.getCheck(channel.guild_id);
|
|
if (value6.canChat) {
|
|
value7 = importDefault(dependencyMap[11])(channel, PermissionStore);
|
|
if (isChannelFull2) {
|
|
if (channel.isGuildStageVoice()) {
|
|
moduleValue3 = require(dependencyMap[12]);
|
|
if (moduleValue3.getStageHasMedia(channel.id)) {
|
|
defaultImport2 = importDefault(dependencyMap[13]);
|
|
defaultImport2.openLazy(require(dependencyMap[15])(dependencyMap[14],
|
|
dependencyMap.paths),
|
|
STAGE_BOOSTING_SHEET_KEY, {channel: channel});
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
moduleValue2 = require(dependencyMap[9]);
|
|
if (moduleValue2.canLurkerListen(channel)) {
|
|
value7 = importDefault(dependencyMap[11])(channel, PermissionStore);
|
|
if (isChannelFull2) {
|
|
if (channel.isGuildStageVoice()) {
|
|
moduleValue3 = require(dependencyMap[12]);
|
|
if (moduleValue3.getStageHasMedia(channel.id)) {
|
|
defaultImport2 = importDefault(dependencyMap[13]);
|
|
defaultImport2.openLazy(require(dependencyMap[15])(dependencyMap[14],
|
|
dependencyMap.paths),
|
|
STAGE_BOOSTING_SHEET_KEY, {channel: channel});
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
return require(dependencyMap[10]).unverifiedVoiceGate(value6);
|
|
}
|
|
return undefined;
|
|
}
|
|
if (channel == null) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
moduleValue = require(dependencyMap[8]);
|
|
isChannelFull2 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
|
|
value6 = GuildVerificationStore.getCheck(channel.guild_id);
|
|
}
|
|
if (value6.canChat) {
|
|
value7 = importDefault(dependencyMap[11])(channel, PermissionStore);
|
|
if (isChannelFull2) {
|
|
if (channel.isGuildStageVoice()) {
|
|
moduleValue3 = require(dependencyMap[12]);
|
|
if (moduleValue3.getStageHasMedia(channel.id)) {
|
|
defaultImport2 = importDefault(dependencyMap[13]);
|
|
defaultImport2.openLazy(require(dependencyMap[15])(dependencyMap[14], dependencyMap.paths),
|
|
STAGE_BOOSTING_SHEET_KEY, {channel: channel});
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
moduleValue2 = require(dependencyMap[9]);
|
|
if (moduleValue2.canLurkerListen(channel)) {
|
|
value7 = importDefault(dependencyMap[11])(channel, PermissionStore);
|
|
if (isChannelFull2) {
|
|
if (channel.isGuildStageVoice()) {
|
|
moduleValue3 = require(dependencyMap[12]);
|
|
if (moduleValue3.getStageHasMedia(channel.id)) {
|
|
defaultImport2 = importDefault(dependencyMap[13]);
|
|
defaultImport2.openLazy(require(dependencyMap[15])(dependencyMap[14], dependencyMap.paths),
|
|
STAGE_BOOSTING_SHEET_KEY, {channel: channel});
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (isChannelFull2) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
return require(dependencyMap[10]).unverifiedVoiceGate(value6);
|
|
function _fun41549() { // fn#41549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:854, offset: 0x0112103d, size: 152 bytes, params: 1, frame: 16
|
|
const value2 = (Module00491Module).v4();
|
|
const defaultImport = Dispatcher;
|
|
const dispatch = defaultImport.dispatch;
|
|
const object = {type: 'VOICE_CHANNEL_SELECT'};
|
|
object.guildId = require;
|
|
object.channelId = env0_0;
|
|
object.currentVoiceChannelId = SelectedChannelStore.getVoiceChannelId();
|
|
object.video = env0_2;
|
|
object.stream = env0_3;
|
|
object.lockVoiceStateForResume = lockVoiceStateForResume;
|
|
object.joinVoiceId = value2;
|
|
object.bypassIdleUpdate = bypassIdleUpdate;
|
|
Reflect.apply(dispatch, defaultImport, [object]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun41547, 4797, [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080,
|
|
6272, 1962, 12366, 491, 694,
|
|
2]) /* metro module 4797, dependencies: [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080, 6272, 1962, 12366, 491, 694, 2] */;
|