2148 lines
98 KiB
TypeScript
2148 lines
98 KiB
TypeScript
/* Metro module 11349; source: modules/messages/native/handlers/handleMessagesTapChannel.tsx; dependencies: [5, 1383, 1422, 1379, 1945, 1938, 1867, 3784, 661, 1386, 5106, 6600, 6946, 8877, 8778, 5080, 11350, 1962, 6837, 4080, 11363, 11371, 1360, 4246, 7709, 4796, 2] */
|
|
function _fun86905(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11535:6, offset: 0x01fa6c68, size: 400 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const maybeStartLurking = function() {
|
|
return _maybeStartLurking.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_5 = (require(1383) /* metro dependency 1383: ChannelRecord */).isGuildVocalChannelType;
|
|
const env0_6 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildLurker;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
|
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
|
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_12 = constantsModule.ChannelTypes;
|
|
const env0_13 = constantsModule.GuildFeatures;
|
|
const env0_14 = constantsModule.Permissions;
|
|
const env0_15 = constantsModule.Routes;
|
|
const env0_16 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
|
|
const env0_17 = (require(5106) /* metro dependency 5106: GuildOnboardingPromptsConstants */).GuildOnboardingTab;
|
|
const env0_18 = (require(6600) /* metro dependency 6600: GuildOnboardingConstants */).CHANNELS_AND_ROLES_MODAL_KEY;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/handlers/handleMessagesTapChannel.tsx');
|
|
exports.handleMessagesTapChannel = function() {
|
|
return _handleMessagesTapChannel.apply(this, arguments);
|
|
};
|
|
}
|
|
|
|
function _maybeStartLurking() { // fn#86907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11535:462, offset: 0x01fa6df8, size: 50 bytes, params: 1, frame: 14
|
|
return env0_4(_fun86909).apply(this, arguments);
|
|
}
|
|
|
|
function _handleMessagesTapChannel() { // fn#86910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11535:676, offset: 0x01fa6eb0, size: 50 bytes, params: 1, frame: 14
|
|
return env0_4(_fun86912).apply(this, arguments);
|
|
}
|
|
|
|
function* _fun86909(a0, a1, a2, a3) { // fn#86909, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11535:521, offset: 0x01fa6e35, size: 123 bytes, params: 5, frame: 17
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var startLurking;
|
|
var object3;
|
|
var object4;
|
|
var value3;
|
|
var error;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (a0 == null) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_2;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding2[12];
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = binding(property);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
startLurking = value.startLurking;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object3.channelId = a2;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object3.messageId = a3;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = Reflect.apply(startLurking, value, [a1, object4, object3]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
return true;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_6(a0)) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_2;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding2[12];
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = binding(property);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
startLurking = value.startLurking;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object3.channelId = a2;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object3.messageId = a3;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = Reflect.apply(startLurking, value, [a1, object4, object3]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
async function _fun86912({data, navigationReplace, onBeforeNavigate, dismissKeyboard}) { // fn#86912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11535:749, offset: 0x01fa6ef6, size: 1743 bytes, params: 2, frame: 29
|
|
var r5;
|
|
var binding;
|
|
var CHANNEL;
|
|
var value13;
|
|
var id;
|
|
var value16;
|
|
var value18;
|
|
var guild_id;
|
|
var value20;
|
|
var binding2;
|
|
var pushLazy;
|
|
var selfMember;
|
|
var role;
|
|
var roles;
|
|
var binding3;
|
|
var openLazy;
|
|
var binding4;
|
|
var features;
|
|
var binding5;
|
|
var binding6;
|
|
if (true) {
|
|
navigationReplace = !(navigationReplace === undefined) && navigationReplace;
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
var channelId = data.channelId;
|
|
var guildId = data.guildId;
|
|
var messageId = data.messageId;
|
|
value = null;
|
|
r5 = value != channelId ? env2_7.getChannel(channelId) : value;
|
|
var guild = env2_10.getGuild(guildId);
|
|
env2_1(env2_3[13]).trackDiscordLinkClicked({guildId: guildId, channelId: channelId, messageId: messageId});
|
|
if (value == guildId) {
|
|
if (value == messageId) {
|
|
if (value == r5) {
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
if (r5.isPrivate()) {
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
id = r5.id;
|
|
await binding(guild, guildId, id, messageId);
|
|
value16 = undefined;
|
|
if (false) {
|
|
return value16;
|
|
}
|
|
if (value16) {
|
|
return undefined;
|
|
}
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guildId, id]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != r5) {
|
|
if (r5.isPrivate()) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(r5.guild_id, r5.id, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
guild_id = r5.guild_id;
|
|
id = r5.id;
|
|
await binding(guild, guild_id, id, messageId);
|
|
value20 = undefined;
|
|
if (false) {
|
|
return value20;
|
|
}
|
|
if (value20) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
guild_id = r5.guild_id;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guild_id, id, messageId]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
if (r5.isPrivate()) {
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace, openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
id = r5.id;
|
|
await binding(guild, guildId, id, messageId);
|
|
value16 = undefined;
|
|
if (false) {
|
|
return value16;
|
|
}
|
|
if (value16) {
|
|
return undefined;
|
|
}
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace, openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guildId, id]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else {
|
|
if (value == channelId) {
|
|
if (value == messageId) {
|
|
if (value == r5) {
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
if (r5.isPrivate()) {
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
id = r5.id;
|
|
await binding(guild, guildId, id, messageId);
|
|
value16 = undefined;
|
|
if (false) {
|
|
return value16;
|
|
}
|
|
if (value16) {
|
|
return undefined;
|
|
}
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guildId, id]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != r5) {
|
|
if (r5.isPrivate()) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(r5.guild_id, r5.id, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
guild_id = r5.guild_id;
|
|
id = r5.id;
|
|
await binding(guild, guild_id, id, messageId);
|
|
value20 = undefined;
|
|
if (false) {
|
|
return value20;
|
|
}
|
|
if (value20) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
guild_id = r5.guild_id;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guild_id, id, messageId]),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
if (r5.isPrivate()) {
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
id = r5.id;
|
|
await binding(guild, guildId, id, messageId);
|
|
value16 = undefined;
|
|
if (false) {
|
|
return value16;
|
|
}
|
|
if (value16) {
|
|
return undefined;
|
|
}
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guildId, id]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_0;
|
|
var value9 = binding(env2_3[14]);
|
|
if (value9.isStaticRouteIconType(channelId)) {
|
|
if (value == guild) {
|
|
return undefined;
|
|
}
|
|
if (channelId === 'browse') {
|
|
features = guild.features;
|
|
if (features.has(env2_13.COMMUNITY)) {
|
|
binding = env2_1;
|
|
binding6 = env2_3;
|
|
value = binding(binding6[15]);
|
|
pushLazy = value.pushLazy;
|
|
binding = env2_0;
|
|
Reflect.apply(pushLazy, value, [binding(binding6[17])(binding6[16], binding6.paths),
|
|
{guildId: guildId,
|
|
defaultTab: env2_17.BROWSE}, env2_18]);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (channelId === 'customize') {
|
|
features = guild.features;
|
|
if (features.has(env2_13.COMMUNITY)) {
|
|
binding = env2_1;
|
|
binding5 = env2_3;
|
|
value = binding(binding5[15]);
|
|
pushLazy = value.pushLazy;
|
|
binding = env2_0;
|
|
Reflect.apply(pushLazy, value, [binding(binding5[17])(binding5[16], binding5.paths),
|
|
{guildId: guildId,
|
|
defaultTab: env2_17.CUSTOMIZE}, env2_18]);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (channelId === 'home') {
|
|
features = guild.features;
|
|
if (features.has(env2_13.COMMUNITY)) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, env2_16.GUILD_HOME), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (channelId === 'guide') {
|
|
features = guild.features;
|
|
if (features.has(env2_13.COMMUNITY)) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, env2_16.GUILD_HOME), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (channelId === 'linked-roles') {
|
|
if (value != messageId) {
|
|
binding = env2_8;
|
|
selfMember = binding.getSelfMember(guildId);
|
|
if (value == selfMember) {
|
|
return undefined;
|
|
}
|
|
binding = env2_9;
|
|
role = binding.getRole(guildId, messageId);
|
|
if (value == role) {
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value = binding(binding4[15]);
|
|
pushLazy = value.pushLazy;
|
|
binding = env2_0;
|
|
Reflect.apply(pushLazy, value, [binding(binding4[17])(binding4[21], binding4.paths),
|
|
{guildId: guildId}]);
|
|
} else {
|
|
roles = selfMember.roles;
|
|
if (roles.includes(role.id)) {
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value = binding(binding4[15]);
|
|
pushLazy = value.pushLazy;
|
|
binding = env2_0;
|
|
Reflect.apply(pushLazy, value, [binding(binding4[17])(binding4[21], binding4.paths),
|
|
{guildId: guildId}]);
|
|
} else {
|
|
binding = env2_1;
|
|
binding3 = env2_3;
|
|
value = binding(binding3[19]);
|
|
openLazy = value.openLazy;
|
|
binding = env2_0;
|
|
Reflect.apply(openLazy, value, [binding(binding3[17])(binding3[20], binding3.paths),
|
|
'GuildRoleConnectionsConnectAccountsActionSheet-' + role.id, {role: role,
|
|
guildId: guildId}]);
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_1;
|
|
binding2 = env2_3;
|
|
value = binding(binding2[15]);
|
|
pushLazy = value.pushLazy;
|
|
binding = env2_0;
|
|
Reflect.apply(pushLazy, value, [binding(binding2[17])(binding2[21], binding2.paths),
|
|
{guildId: guildId}]);
|
|
return undefined;
|
|
}
|
|
binding = env2_0;
|
|
value = binding(env2_3[22]);
|
|
value.assertNever(channelId);
|
|
return undefined;
|
|
}
|
|
if (value == messageId) {
|
|
if (value == r5) {
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId),
|
|
{navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
if (r5.isPrivate()) {
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
id = r5.id;
|
|
await binding(guild, guildId, id, messageId);
|
|
value16 = undefined;
|
|
if (false) {
|
|
return value16;
|
|
}
|
|
if (value16) {
|
|
return undefined;
|
|
}
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guildId, id]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != r5) {
|
|
if (r5.isPrivate()) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(r5.guild_id, r5.id, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
guild_id = r5.guild_id;
|
|
id = r5.id;
|
|
await binding(guild, guild_id, id, messageId);
|
|
value20 = undefined;
|
|
if (false) {
|
|
return value20;
|
|
}
|
|
if (value20) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
guild_id = r5.guild_id;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guild_id, id, messageId]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
if (r5.isPrivate()) {
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace, openChannel: true});
|
|
return undefined;
|
|
}
|
|
binding = env2_19;
|
|
id = r5.id;
|
|
await binding(guild, guildId, id, messageId);
|
|
value16 = undefined;
|
|
if (false) {
|
|
return value16;
|
|
}
|
|
if (value16) {
|
|
return undefined;
|
|
}
|
|
binding = env2_5;
|
|
if (binding(r5.type)) {
|
|
binding = env2_0;
|
|
value18 = binding(env2_3[23]);
|
|
if (value18.canViewChannel(r5)) {
|
|
if (r5.type !== env2_12.GUILD_STAGE_VOICE) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
binding = env2_11;
|
|
if (binding.can(env2_14.CONNECT, r5)) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_0(env2_3[24]);
|
|
value.openChannelCallModal(r5);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, r5.id), {navigationReplace: navigationReplace, openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
CHANNEL = binding.CHANNEL;
|
|
id = r5.id;
|
|
value(Reflect.apply(CHANNEL, binding, [guildId, id]), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == channelId) {
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value != guildId) {
|
|
await env2_19(guild, guildId, channelId, messageId);
|
|
value13 = undefined;
|
|
if (false) {
|
|
return value13;
|
|
}
|
|
if (value13) {
|
|
return undefined;
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
return undefined;
|
|
}
|
|
if (value == r5) {
|
|
if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
} else if (r5.isPrivate()) {
|
|
if (value != dismissKeyboard) {
|
|
dismissKeyboard();
|
|
}
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
value = env2_1(env2_3[25]);
|
|
value.selectVoiceChannel(channelId);
|
|
} else if (value != channelId && value == guildId) {
|
|
if (value != onBeforeNavigate) {
|
|
onBeforeNavigate();
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[18]);
|
|
binding = env2_15;
|
|
value(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: navigationReplace,
|
|
openChannel: true});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|