Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,258 @@
|
||||
/* Metro module 5094; source: modules/opt_in_channels/FavoritesSuggestionStore.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 1934, 4864, 566, 694, 2] */
|
||||
function _fun44428(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5272:6, offset: 0x01170915, size: 340 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_8 = {};
|
||||
const env0_9 = {};
|
||||
const env0_10 = {};
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun44433(PersistedStore);
|
||||
value.displayName = 'FavoritesSuggestionStore';
|
||||
value.persistKey = 'FavoritesSuggestionStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{DISMISS_FAVORITE_SUGGESTION: DISMISS_FAVORITE_SUGGESTION_44438});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/FavoritesSuggestionStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_44429() { // fn#44429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5272:178, offset: 0x01170a69, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_44429_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function handleChange() { // fn#44432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5272:390, offset: 0x01170ac7, size: 373 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var binding;
|
||||
var property;
|
||||
var Set;
|
||||
var value4;
|
||||
var set;
|
||||
const channelId = SelectedChannelStore.getChannelId();
|
||||
if (channelId == null) {
|
||||
return undefined;
|
||||
}
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
if (channel == null) {
|
||||
return undefined;
|
||||
}
|
||||
let guild_id = channel.guild_id;
|
||||
if (guild_id == null) {
|
||||
return undefined;
|
||||
}
|
||||
guild_id = channel.guild_id;
|
||||
if (env0_10[channelId] == null) {
|
||||
env0_10[channelId] = 0;
|
||||
}
|
||||
if (channel.isThread()) {
|
||||
delete env0_10[channelId];
|
||||
if (env0_8[guild_id] != null) {
|
||||
env0_8[guild_id].delete(channelId);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (UserGuildSettingsStore.isOptInEnabled(guild_id)) {
|
||||
if (UserGuildSettingsStore.isChannelOrParentOptedIn(guild_id, channel.id)) {
|
||||
binding = env0_10;
|
||||
property = binding[channelId];
|
||||
binding[channelId] = typeof property === 'bigint' ? property + 1n : +property + 1;
|
||||
if (env0_8[guild_id] == null) {
|
||||
binding = env0_8;
|
||||
Set = global.Set;
|
||||
value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
binding[guild_id] = set instanceof Object ? set : value4;
|
||||
}
|
||||
if (UserGuildSettingsStore.isFavorite(guild_id, channelId)) {
|
||||
env0_8[guild_id].delete(channelId);
|
||||
return undefined;
|
||||
}
|
||||
if (env0_9[guild_id] == null) {
|
||||
if (env0_10[channelId] > 50) {
|
||||
env0_8[guild_id].add(channelId);
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
} else if (env0_9[guild_id].has(channelId)) {
|
||||
r0 = undefined;
|
||||
} else if (env0_10[channelId] > 50) {
|
||||
env0_8[guild_id].add(channelId);
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
delete env0_10[channelId];
|
||||
if (env0_8[guild_id] != null) {
|
||||
env0_8[guild_id].delete(channelId);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env0_10;
|
||||
property = binding[channelId];
|
||||
binding[channelId] = typeof property === 'bigint' ? property + 1n : +property + 1;
|
||||
if (env0_8[guild_id] == null) {
|
||||
binding = env0_8;
|
||||
Set = global.Set;
|
||||
value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
binding[guild_id] = set instanceof Object ? set : value4;
|
||||
}
|
||||
if (UserGuildSettingsStore.isFavorite(guild_id, channelId)) {
|
||||
env0_8[guild_id].delete(channelId);
|
||||
return undefined;
|
||||
}
|
||||
if (env0_9[guild_id] == null) {
|
||||
if (env0_10[channelId] > 50) {
|
||||
env0_8[guild_id].add(channelId);
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
} else if (env0_9[guild_id].has(channelId)) {
|
||||
r0 = undefined;
|
||||
} else if (env0_10[channelId] > 50) {
|
||||
env0_8[guild_id].add(channelId);
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun44433(a0) { // fn#44433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5272:810, offset: 0x01170c3c, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = FavoritesSuggestionStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_44435}, {key: 'getSuggestedChannelId', value: function() {
|
||||
return null;
|
||||
}}, {key: 'getState', value: function() {
|
||||
return {suggestedChannels: {}, dismissedSuggestions: {}, channelOpensByChannelId: {}};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function DISMISS_FAVORITE_SUGGESTION_44438({guildId, channelId}) { // fn#44438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5272:1809, offset: 0x01170df4, size: 106 bytes, params: 2, frame: 14
|
||||
var binding;
|
||||
var Set;
|
||||
var value2;
|
||||
var set;
|
||||
if (env0_9[guildId] == null) {
|
||||
binding = env0_9;
|
||||
Set = global.Set;
|
||||
value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
binding[guildId] = set instanceof Object ? set : value2;
|
||||
}
|
||||
env0_9[guildId].add(channelId);
|
||||
env0_8[guildId].delete(channelId);
|
||||
return true;
|
||||
}
|
||||
|
||||
function value_44435(a0) { // fn#44435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5272:1160, offset: 0x01170cae, size: 301 bytes, params: 2, frame: 26
|
||||
var r11;
|
||||
var r10;
|
||||
var r0;
|
||||
var suggestedChannels;
|
||||
var dismissedSuggestions;
|
||||
var channelOpensByChannelId;
|
||||
var propertyName;
|
||||
var binding;
|
||||
var Set;
|
||||
var property;
|
||||
var prototype;
|
||||
var value2;
|
||||
var set;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
this.waitFor(ChannelStore, SelectedChannelStore, UserGuildSettingsStore);
|
||||
this.syncWith([SelectedChannelStore], handleChange);
|
||||
if (a0 != null) {
|
||||
suggestedChannels = a0.suggestedChannels;
|
||||
dismissedSuggestions = a0.dismissedSuggestions;
|
||||
channelOpensByChannelId = a0.channelOpensByChannelId;
|
||||
if (suggestedChannels != null) {
|
||||
for (propertyName in suggestedChannels) {
|
||||
binding = env1_8;
|
||||
Set = global.Set;
|
||||
property = suggestedChannels[propertyName];
|
||||
prototype = Set.prototype;
|
||||
value2 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value3 = set instanceof Object ? set : value2;
|
||||
if (value3 != null) {
|
||||
r11 = value3;
|
||||
continue;
|
||||
}
|
||||
Set = global.Set;
|
||||
prototype = Set.prototype;
|
||||
value4 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value5 = set instanceof Object ? set : value4;
|
||||
r11 = value5;
|
||||
binding[propertyName] = r11;
|
||||
}
|
||||
}
|
||||
if (dismissedSuggestions != null) {
|
||||
for (propertyName in dismissedSuggestions) {
|
||||
binding = env1_9;
|
||||
Set = global.Set;
|
||||
property = dismissedSuggestions[propertyName];
|
||||
prototype = Set.prototype;
|
||||
value6 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value7 = set instanceof Object ? set : value6;
|
||||
if (value7 != null) {
|
||||
r10 = value7;
|
||||
continue;
|
||||
}
|
||||
Set = global.Set;
|
||||
prototype = Set.prototype;
|
||||
value8 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value9 = set instanceof Object ? set : value8;
|
||||
r10 = value9;
|
||||
binding[propertyName] = r10;
|
||||
}
|
||||
}
|
||||
r0 = channelOpensByChannelId ?? ({});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,514 @@
|
||||
/* Metro module 6609; source: modules/opt_in_channels/OptInChannelsActionCreators.tsx; dependencies: [5, 1937, 1379, 4864, 661, 670, 6607, 1391, 6610, 6612, 694, 683, 4863, 22, 6613, 1362, 1314, 2] */
|
||||
function _fun52159(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:6, offset: 0x013208cd, size: 407 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = bulkOptOutChannels;
|
||||
const closure2 = dismissGuildNotice;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const impersonateStore = importDefault(1937) /* metro dependency 1937: ImpersonateStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = require(670) /* metro dependency 670: UserSettingsConstants */;
|
||||
const env0_8 = value.ChannelNotificationSettingsFlags;
|
||||
const env0_9 = value.GuildNotificationSettingsFlags;
|
||||
value = require(22) /* metro dependency 22 */;
|
||||
value = value.debounce(function(a0, a1) {
|
||||
return _fun52168(a0, a1);
|
||||
}, 1000);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/OptInChannelsActionCreators.tsx');
|
||||
exports.setOptInChannel = setOptInChannel;
|
||||
exports.updateOptInChannelsImmediate = updateOptInChannelsImmediate;
|
||||
exports.updateOptInChannelsBatched = value;
|
||||
exports.bulkOptInChannels = bulkOptInChannels;
|
||||
exports.bulkOptOutChannels = closure;
|
||||
exports.setGuildOptIn = setGuildOptIn;
|
||||
exports.setIsFavorite = setIsFavorite;
|
||||
exports.setMessagesFavorite = setMessagesFavorite;
|
||||
exports.enableGuildNotice = enableGuildNotice;
|
||||
exports.dismissGuildNotice = closure2;
|
||||
exports.clearGuildNotice = clearGuildNotice;
|
||||
exports.dimissFavoriteSuggestion = dimissFavoriteSuggestion;
|
||||
exports.setRecentlyActiveCollapsed = setRecentlyActiveCollapsed;
|
||||
}
|
||||
|
||||
function _persistOptInChannelUpdates2() { // fn#52160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:243, offset: 0x01320a64, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun52162).apply(this, arguments);
|
||||
}
|
||||
|
||||
function bulkOptOutChannels(a0, a1, a2) { // fn#52163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:711, offset: 0x01320b44, size: 266 bytes, params: 4, frame: 21
|
||||
var value;
|
||||
var object2;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
var CHANNEL_LIST_UPDATED;
|
||||
const env0_0 = a0;
|
||||
if (a0 != null) {
|
||||
if (ImpersonateStore.isFullServerPreview(a0)) {
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedChannels(a0, [],
|
||||
a1);
|
||||
} else {
|
||||
a1.forEach(_fun52164);
|
||||
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
defaultImport.updateChannelOverrideSettingsBulk(a0, {},
|
||||
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels.OptedOut);
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object2 = {};
|
||||
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, value.collectGuildAnalyticsMetadata(a0), undefined);
|
||||
object2['action_type'] = 'remove_many';
|
||||
object2['location'] = a2;
|
||||
Reflect.apply(track, defaultImport2, [CHANNEL_LIST_UPDATED, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function dismissGuildNotice(a0) { // fn#52165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:1151, offset: 0x01320caa, size: 71 bytes, params: 2, frame: 16
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateUserGuildSettings = value.updateUserGuildSettings;
|
||||
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
|
||||
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
Reflect.apply(updateUserGuildSettings, value, [a0, _fun52166, INFREQUENT_USER_ACTION]);
|
||||
}
|
||||
|
||||
function _fun52167(a0, a1) { // fn#52167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:595, offset: 0x01320df6, size: 23 bytes, params: 3, frame: 13
|
||||
return (function() {
|
||||
return _persistOptInChannelUpdates2.apply(this, arguments);
|
||||
})(a0, a1);
|
||||
}
|
||||
|
||||
function setOptInChannel(a0, a1, a2, a3) { // fn#52169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:1831, offset: 0x01320e2b, size: 578 bytes, params: 5, frame: 28
|
||||
var r7;
|
||||
var channelIdFlags;
|
||||
var moduleValue;
|
||||
var currentChannelSettings;
|
||||
var object2;
|
||||
var moduleValue3;
|
||||
var defaultImport2;
|
||||
var moduleValue4;
|
||||
var trackChannelNotificationSettingsUpdate;
|
||||
var object3;
|
||||
var defaultImport3;
|
||||
var track;
|
||||
var CHANNEL_LIST_UPDATED;
|
||||
var moduleValue5;
|
||||
var moduleValue6;
|
||||
if (a0 != null) {
|
||||
if (ImpersonateStore.isFullServerPreview(a0)) {
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedChannels(a0,
|
||||
a2 ? [a1] : [], a2 ? [] : [a1]);
|
||||
} else {
|
||||
channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
|
||||
if (a2) {
|
||||
r7 = channelIdFlags;
|
||||
} else {
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r7 = moduleValue.setFlag(channelIdFlags, ChannelNotificationSettingsFlags.FAVORITED, false);
|
||||
}
|
||||
currentChannelSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentChannelSettings(a0,
|
||||
|
||||
|
||||
a1);
|
||||
object2 = {};
|
||||
moduleValue3 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
object2.flags = moduleValue3.setFlag(r7, ChannelNotificationSettingsFlags.OPT_IN_ENABLED, a2);
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettingsBulk({[a0]: {channel_overrides: {[a1]: object2}}});
|
||||
defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport2.dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE', guildId: a0, channelId: a1,
|
||||
settings: object2});
|
||||
moduleValue4 = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
|
||||
trackChannelNotificationSettingsUpdate = moduleValue4.trackChannelNotificationSettingsUpdate;
|
||||
object3 = {guildId: a0, channelId: a1, change: object2, previous: currentChannelSettings};
|
||||
object3.label = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel.optedIn(a2);
|
||||
object3.location = a3;
|
||||
Reflect.apply(trackChannelNotificationSettingsUpdate, moduleValue4, [object3]);
|
||||
dismissGuildNotice(a0);
|
||||
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport3.track;
|
||||
CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object2 = {};
|
||||
moduleValue5 = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, moduleValue5.collectGuildAnalyticsMetadata(a0), undefined);
|
||||
moduleValue6 = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, moduleValue6.collectChannelAnalyticsMetadata(ChannelStore.getChannel(a1)),
|
||||
undefined);
|
||||
object2['action_type'] = a2 ? 'add' : 'remove';
|
||||
object2['location'] = a3;
|
||||
Reflect.apply(track, defaultImport3, [CHANNEL_LIST_UPDATED, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function updateOptInChannelsImmediate(a0, a1, a2, a3) { // fn#52170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:2683, offset: 0x0132106d, size: 709 bytes, params: 5, frame: 26
|
||||
var r10;
|
||||
var moduleValue;
|
||||
var setFlag;
|
||||
var object2;
|
||||
var moduleValue4;
|
||||
if (a0 != null) {
|
||||
var value;
|
||||
if (ImpersonateStore.isFullServerPreview(a0)) {
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedChannels(a0,
|
||||
a2 ? [a1] : [], a2 ? [] : [a1]);
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedData(a0,
|
||||
{optInEnabled: true});
|
||||
return undefined;
|
||||
}
|
||||
var channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
|
||||
if (a2) {
|
||||
r10 = channelIdFlags;
|
||||
} else {
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r10 = moduleValue.setFlag(channelIdFlags, ChannelNotificationSettingsFlags.FAVORITED, false);
|
||||
}
|
||||
var currentChannelSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentChannelSettings(a0,
|
||||
|
||||
a1);
|
||||
object2 = {};
|
||||
var moduleValue3 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
setFlag = moduleValue3.setFlag;
|
||||
var OPT_IN_ENABLED = ChannelNotificationSettingsFlags.OPT_IN_ENABLED;
|
||||
object2.flags = Reflect.apply(setFlag, moduleValue3, [r10, OPT_IN_ENABLED, a2]);
|
||||
if (!UserGuildSettingsStore.isOptInEnabled(a0)) {
|
||||
moduleValue4 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettingsBulk({[a0]: {channel_overrides: {[a1]: object2},
|
||||
|
||||
|
||||
flags: moduleValue4.setFlag(UserGuildSettingsStore.getGuildFlags(a0),
|
||||
GuildNotificationSettingsFlags.OPT_IN_CHANNELS_ON, true)}});
|
||||
}
|
||||
var defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport2.dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE', guildId: a0, channelId: a1,
|
||||
settings: object2});
|
||||
var moduleValue5 = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
|
||||
var trackChannelNotificationSettingsUpdate = moduleValue5.trackChannelNotificationSettingsUpdate;
|
||||
var object3 = {guildId: a0, channelId: a1, change: object2, previous: currentChannelSettings};
|
||||
var NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
|
||||
object3.label = NotificationLabel.optedIn(a2);
|
||||
object3.location = a3;
|
||||
Reflect.apply(trackChannelNotificationSettingsUpdate, moduleValue5, [object3]);
|
||||
dismissGuildNotice(a0);
|
||||
var defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
var track = defaultImport3.track;
|
||||
var CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object2 = {};
|
||||
var moduleValue6 = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, moduleValue6.collectGuildAnalyticsMetadata(a0), undefined);
|
||||
var moduleValue7 = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
var collectChannelAnalyticsMetadata = moduleValue7.collectChannelAnalyticsMetadata;
|
||||
var getChannel = ChannelStore.getChannel;
|
||||
copyDataProperties(object2, Reflect.apply(collectChannelAnalyticsMetadata, moduleValue7,
|
||||
[Reflect.apply(getChannel,
|
||||
ChannelStore, [a1])]), undefined);
|
||||
value = 'remove';
|
||||
r10 = a2 ? 'add' : value;
|
||||
object2['action_type'] = r10;
|
||||
object2['location'] = a3;
|
||||
Reflect.apply(track, defaultImport3, [CHANNEL_LIST_UPDATED, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function bulkOptInChannels(a0, a1) { // fn#52171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:3727, offset: 0x01321332, size: 542 bytes, params: 3, frame: 24
|
||||
var object2;
|
||||
var defaultImport;
|
||||
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
var CHANNEL_LIST_UPDATED;
|
||||
var moduleValue;
|
||||
var value3;
|
||||
var defaultImport3;
|
||||
var defaultImport4;
|
||||
let value = a2;
|
||||
const env0_0 = a0;
|
||||
const r0 = value !== undefined ? value : false;
|
||||
if (a0 != null) {
|
||||
if (ImpersonateStore.isFullServerPreview(a0)) {
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedChannels(a0, a1,
|
||||
[]);
|
||||
if (r0) {
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedData(a0,
|
||||
{optInEnabled: true});
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
object2 = {};
|
||||
a1.forEach(_fun52172);
|
||||
if (r0) {
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
value3 = moduleValue.setFlag(UserGuildSettingsStore.getGuildFlags(a0),
|
||||
GuildNotificationSettingsFlags.OPT_IN_CHANNELS_ON, true);
|
||||
defaultImport3 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
defaultImport3.updateGuildAndChannelNotificationSettings(a0, {flags: value3, channel_overrides: object2},
|
||||
NotificationLabels.OptedIn);
|
||||
defaultImport4 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport4.track;
|
||||
CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object2 = {};
|
||||
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, value.collectGuildAnalyticsMetadata(a0), undefined);
|
||||
object2['action_type'] = 'add_many_and_enable_guild';
|
||||
object2['location'] = a3;
|
||||
Reflect.apply(track, defaultImport4, [CHANNEL_LIST_UPDATED, object2]);
|
||||
} else {
|
||||
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
defaultImport.updateChannelOverrideSettingsBulk(a0, object2, NotificationLabels.OptedIn);
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object2 = {};
|
||||
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, value.collectGuildAnalyticsMetadata(a0), undefined);
|
||||
object2['action_type'] = 'add_many';
|
||||
object2['location'] = a3;
|
||||
Reflect.apply(track, defaultImport2, [CHANNEL_LIST_UPDATED, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setGuildOptIn(a0, a1, a2) { // fn#52173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:4621, offset: 0x013215ac, size: 302 bytes, params: 4, frame: 24
|
||||
var guildFlags;
|
||||
var defaultImport;
|
||||
var updateGuildNotificationSettings;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
var NotificationLabel;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
var CHANNEL_LIST_UPDATED;
|
||||
var value;
|
||||
if (ImpersonateStore.isFullServerPreview(a0)) {
|
||||
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedData(a0,
|
||||
{optInEnabled: a1});
|
||||
} else {
|
||||
guildFlags = UserGuildSettingsStore.getGuildFlags(a0);
|
||||
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
|
||||
object2 = {};
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
object2.flags = moduleValue.setFlag(guildFlags, GuildNotificationSettingsFlags.OPT_IN_CHANNELS_ON, a1);
|
||||
NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
|
||||
Reflect.apply(updateGuildNotificationSettings, defaultImport, [a0, object2, NotificationLabel.optedIn(a1)]);
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object2 = {};
|
||||
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, value.collectGuildAnalyticsMetadata(a0), undefined);
|
||||
value = 'guild_disabled';
|
||||
object2['action_type'] = a1 ? 'guild_enabled' : value;
|
||||
object2['location'] = a2;
|
||||
Reflect.apply(track, defaultImport2, [CHANNEL_LIST_UPDATED, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function setIsFavorite(a0, a1, a2, a3) { // fn#52174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:5053, offset: 0x013216da, size: 375 bytes, params: 5, frame: 26
|
||||
var r14;
|
||||
var channelIdFlags;
|
||||
var moduleValue;
|
||||
var moduleValue2;
|
||||
var defaultImport;
|
||||
var updateChannelOverrideSettings;
|
||||
var object3;
|
||||
var moduleValue3;
|
||||
var NotificationLabel;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
var CHANNEL_LIST_UPDATED;
|
||||
var object4;
|
||||
var moduleValue4;
|
||||
const value = a2;
|
||||
if (a0 != null) {
|
||||
if (!ImpersonateStore.isFullServerPreview(a0)) {
|
||||
channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
if (!moduleValue.hasFlag(channelIdFlags, ChannelNotificationSettingsFlags.OPT_IN_ENABLED) && value) {
|
||||
moduleValue2 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r14 = moduleValue2.setFlag(channelIdFlags, ChannelNotificationSettingsFlags.OPT_IN_ENABLED, true);
|
||||
} else {
|
||||
r14 = channelIdFlags;
|
||||
}
|
||||
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
|
||||
object3 = {};
|
||||
moduleValue3 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
object3.flags = moduleValue3.setFlag(r14, ChannelNotificationSettingsFlags.FAVORITED, value);
|
||||
NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
|
||||
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object3,
|
||||
NotificationLabel.favorited(value)]);
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
CHANNEL_LIST_UPDATED = AnalyticEvents.CHANNEL_LIST_UPDATED;
|
||||
object4 = {};
|
||||
moduleValue4 = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object4, moduleValue4.collectGuildAnalyticsMetadata(a0), object3);
|
||||
object4['action_type'] = value ? 'favorited' : 'unfavorited';
|
||||
object4['location'] = a3;
|
||||
Reflect.apply(track, defaultImport2, [CHANNEL_LIST_UPDATED, object4]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setMessagesFavorite(a0, a1) { // fn#52175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:5524, offset: 0x01321851, size: 146 bytes, params: 3, frame: 24
|
||||
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(null, a0);
|
||||
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
|
||||
const object2 = {};
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const setFlag = flagUtilsModule.setFlag;
|
||||
const FAVORITED = ChannelNotificationSettingsFlags.FAVORITED;
|
||||
object2.flags = Reflect.apply(setFlag, flagUtilsModule, [channelIdFlags, FAVORITED, a1]);
|
||||
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
|
||||
Reflect.apply(updateChannelOverrideSettings, defaultImport, [null, a0, object2, NotificationLabel.favorited(a1)]);
|
||||
}
|
||||
|
||||
function enableGuildNotice(a0) { // fn#52176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:5740, offset: 0x013218e3, size: 71 bytes, params: 2, frame: 16
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateUserGuildSettings = value.updateUserGuildSettings;
|
||||
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
|
||||
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
Reflect.apply(updateUserGuildSettings, value, [a0, _fun52177, INFREQUENT_USER_ACTION]);
|
||||
}
|
||||
|
||||
function clearGuildNotice(a0) { // fn#52178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:6144, offset: 0x013219b8, size: 109 bytes, params: 2, frame: 17
|
||||
const bulkOptOutChannelsBinding = bulkOptOutChannels;
|
||||
const optedInChannels = UserGuildSettingsStore.getOptedInChannels(a0);
|
||||
const items2 = [];
|
||||
arraySpread(items2, optedInChannels, 0, undefined);
|
||||
bulkOptOutChannelsBinding(a0, items2);
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateUserGuildSettings = value.updateUserGuildSettings;
|
||||
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
|
||||
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
Reflect.apply(updateUserGuildSettings, value, [a0, _fun52179, INFREQUENT_USER_ACTION]);
|
||||
}
|
||||
|
||||
function dimissFavoriteSuggestion(a0, a1) { // fn#52180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:6598, offset: 0x01321aaf, size: 61 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DISMISS_FAVORITE_SUGGESTION',
|
||||
guildId: a0, channelId: a1});
|
||||
}
|
||||
|
||||
function setRecentlyActiveCollapsed(a0, a1) { // fn#52181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:6745, offset: 0x01321aec, size: 62 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SET_RECENTLY_ACTIVE_COLLAPSED',
|
||||
guildId: a0, collapsed: a1});
|
||||
}
|
||||
|
||||
function* _fun52162(a0, a1) { // fn#52162, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:322, offset: 0x01320a9d, size: 167 bytes, params: 3, frame: 18
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (a0 != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_4;
|
||||
if (binding.isFullServerPreview(a0)) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
var value3 = binding(env2_2[9]);
|
||||
yield value3.saveUserGuildSettingsBulk({[a0]: {channel_overrides: a1}});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[10]);
|
||||
value.dispatch({type: 'USER_GUILD_SETTINGS_REMOVE_PENDING_CHANNEL_UPDATES', guildId: a0, updates: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun52164(a0) { // fn#52164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:853, offset: 0x01320c4e, size: 92 bytes, params: 2, frame: 19
|
||||
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(env0_0, a0);
|
||||
const binding = env0_1;
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const setFlag = flagUtilsModule.setFlag;
|
||||
const OPT_IN_ENABLED = ChannelNotificationSettingsFlags.OPT_IN_ENABLED;
|
||||
binding[a0] = {flags: Reflect.apply(setFlag, flagUtilsModule, [channelIdFlags, OPT_IN_ENABLED, false])};
|
||||
}
|
||||
|
||||
function _fun52166(a0) { // fn#52166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:1218, offset: 0x01320cf1, size: 261 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var moduleValue2;
|
||||
var addFlag;
|
||||
var setFlag;
|
||||
let value = environment.__proto__;
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const hasFlag = flagUtilsModule.hasFlag;
|
||||
let guildOnboardingProgress = a0.guildOnboardingProgress;
|
||||
const GuildOnboardingProgress = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildOnboardingProgress;
|
||||
const GUILD_NOTICE_CLEARED = GuildOnboardingProgress.GUILD_NOTICE_CLEARED;
|
||||
const hasFlag2 = Reflect.apply(hasFlag, flagUtilsModule, [guildOnboardingProgress, GUILD_NOTICE_CLEARED]);
|
||||
if (hasFlag2) {
|
||||
moduleValue2 = flagUtilsModule;
|
||||
r0 = !moduleValue2.hasFlag(a0.guildOnboardingProgress, GuildOnboardingProgress.GUILD_NOTICE_SHOWN);
|
||||
} else {
|
||||
r0 = hasFlag2;
|
||||
}
|
||||
if (r0) {
|
||||
r0 = !r0;
|
||||
} else {
|
||||
value = flagUtilsModule;
|
||||
addFlag = value.addFlag;
|
||||
guildOnboardingProgress = a0.guildOnboardingProgress;
|
||||
a0.guildOnboardingProgress = Reflect.apply(addFlag, value, [guildOnboardingProgress,
|
||||
GuildOnboardingProgress.GUILD_NOTICE_CLEARED]);
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
setFlag = value.setFlag;
|
||||
guildOnboardingProgress = a0.guildOnboardingProgress;
|
||||
a0.guildOnboardingProgress = Reflect.apply(setFlag, value, [guildOnboardingProgress,
|
||||
GuildOnboardingProgress.GUILD_NOTICE_SHOWN, false]);
|
||||
value = true;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun52172(a0) { // fn#52172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:3940, offset: 0x01321550, size: 92 bytes, params: 2, frame: 19
|
||||
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(env0_0, a0);
|
||||
const binding = env0_1;
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const setFlag = flagUtilsModule.setFlag;
|
||||
const OPT_IN_ENABLED = ChannelNotificationSettingsFlags.OPT_IN_ENABLED;
|
||||
binding[a0] = {flags: Reflect.apply(setFlag, flagUtilsModule, [channelIdFlags, OPT_IN_ENABLED, true])};
|
||||
}
|
||||
|
||||
function _fun52177(a0) { // fn#52177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:5806, offset: 0x0132192a, size: 142 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const hasFlag = flagUtilsModule.hasFlag;
|
||||
const guildOnboardingProgress = a0.guildOnboardingProgress;
|
||||
const GuildOnboardingProgress = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildOnboardingProgress;
|
||||
const GUILD_NOTICE_SHOWN = GuildOnboardingProgress.GUILD_NOTICE_SHOWN;
|
||||
const hasFlag2 = Reflect.apply(hasFlag, flagUtilsModule, [guildOnboardingProgress, GUILD_NOTICE_SHOWN]);
|
||||
if (hasFlag2) {
|
||||
r0 = !hasFlag2;
|
||||
} else {
|
||||
value = flagUtilsModule;
|
||||
a0.guildOnboardingProgress = value.addFlag(a0.guildOnboardingProgress,
|
||||
GuildOnboardingProgress.GUILD_NOTICE_SHOWN);
|
||||
value = true;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun52179(a0) { // fn#52179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6787:6260, offset: 0x01321a25, size: 138 bytes, params: 2, frame: 21
|
||||
let value = environment.__proto__;
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
let setFlag = value.setFlag;
|
||||
let guildOnboardingProgress = a0.guildOnboardingProgress;
|
||||
const GuildOnboardingProgress = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildOnboardingProgress;
|
||||
const GUILD_NOTICE_SHOWN = GuildOnboardingProgress.GUILD_NOTICE_SHOWN;
|
||||
a0.guildOnboardingProgress = Reflect.apply(setFlag, value, [guildOnboardingProgress, GUILD_NOTICE_SHOWN, false]);
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
setFlag = value.setFlag;
|
||||
guildOnboardingProgress = a0.guildOnboardingProgress;
|
||||
const GUILD_NOTICE_CLEARED = GuildOnboardingProgress.GUILD_NOTICE_CLEARED;
|
||||
a0.guildOnboardingProgress = Reflect.apply(setFlag, value, [guildOnboardingProgress, GUILD_NOTICE_CLEARED, false]);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,312 @@
|
||||
/* Metro module 11360; source: modules/opt_in_channels/OptInChannelsUtils.tsx; dependencies: [31, 1379, 5098, 4605, 3793, 1878, 661, 1386, 5101, 4865, 5103, 6590, 4805, 5099, 5092, 11361, 5097, 1230, 3968, 1365, 566, 1244, 3738, 21, 2] */
|
||||
function _fun87029(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:6, offset: 0x01fac2b2, size: 389 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const setIndex_87030 = function(a0, a1) {
|
||||
a0.index = a1;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildCategoryStore = importDefault(5098) /* metro dependency 5098: GuildCategoryStore */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.Routes;
|
||||
const env0_10 = value.ChannelTypes;
|
||||
value = require(1386) /* metro dependency 1386: ChannelConstants */;
|
||||
const env0_11 = value.ChannelFlags;
|
||||
const env0_12 = value.StaticChannelRoute;
|
||||
const env0_13 = (require(5101) /* metro dependency 5101: GuildSidebarConstants */).ChannelListGuildActionRow;
|
||||
const env0_14 = (require(4865) /* metro dependency 4865: ReadStateConstants */).ReadStateTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/OptInChannelsUtils.tsx');
|
||||
exports.useFilterCategoriesByQuery = useFilterCategoriesByQuery;
|
||||
exports.getFirstRouteFor = getFirstRouteFor;
|
||||
exports.clearRecentChannels = clearRecentChannels;
|
||||
exports.useChannelBrowserSections = useChannelBrowserSections;
|
||||
exports.useChannelBrowserChannelCount = useChannelBrowserChannelCount;
|
||||
exports.getActiveAgoTimestamp = getActiveAgoTimestamp;
|
||||
}
|
||||
|
||||
function useFilterCategoriesByQuery(a0, a1, a2, a3) { // fn#87031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:448, offset: 0x01fac437, size: 150 bytes, params: 5, frame: 17
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const value = a3.toLowerCase();
|
||||
const value3 = (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome(a0);
|
||||
const binding = value3;
|
||||
return binding.useMemo(_fun87033, [a1, a2, binding.useCallback(_fun87032, [value3]), value]);
|
||||
}
|
||||
|
||||
function getFirstRouteFor(a0) { // fn#87038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:1184, offset: 0x01fac726, size: 270 bytes, params: 2, frame: 21
|
||||
var r6;
|
||||
var channel;
|
||||
var row;
|
||||
var getChannelFromSectionRow;
|
||||
var value6;
|
||||
var value7;
|
||||
const sections = a0.getSections(false);
|
||||
const value3 = undefined;
|
||||
const SECTION_INDEX_GUILD_ACTIONS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_GUILD_ACTIONS;
|
||||
if (sections[SECTION_INDEX_GUILD_ACTIONS] > 0) {
|
||||
row = a0.getGuildActionSection().getRow(0);
|
||||
if (ChannelListGuildActionRow.GUILD_HOME === row) {
|
||||
return StaticChannelRoute.GUILD_HOME;
|
||||
}
|
||||
if (ChannelListGuildActionRow.GUILD_ROLE_SUBSCRIPTIONS === row) {
|
||||
return StaticChannelRoute.ROLE_SUBSCRIPTIONS;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (ChannelListGuildActionRow.GUILD_MOD_DASH_MEMBER_SAFETY === row) {
|
||||
return StaticChannelRoute.MEMBER_SAFETY;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
}
|
||||
const SECTION_INDEX_UNCATEGORIZED_CHANNELS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_UNCATEGORIZED_CHANNELS;
|
||||
let voiceChannelsSectionNumber = a0.voiceChannelsSectionNumber;
|
||||
if (SECTION_INDEX_UNCATEGORIZED_CHANNELS < voiceChannelsSectionNumber) {
|
||||
r6 = SECTION_INDEX_UNCATEGORIZED_CHANNELS;
|
||||
reducibleLoop5: while (true) {
|
||||
if (sections[r6] > 0) {
|
||||
getChannelFromSectionRow = a0.getChannelFromSectionRow;
|
||||
value6 = Reflect.apply(getChannelFromSectionRow, a0, [r6, 0]);
|
||||
reducibleJoin8: while (true) {
|
||||
if (value6 == null) {
|
||||
channel = value3;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
channel = value6.channel;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
reducibleJoin9: while (true) {
|
||||
if (channel != null) {
|
||||
return channel.id;
|
||||
}
|
||||
break reducibleJoin9;
|
||||
}
|
||||
}
|
||||
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
||||
voiceChannelsSectionNumber = a0.voiceChannelsSectionNumber;
|
||||
if (!(value7 < voiceChannelsSectionNumber)) {
|
||||
return null;
|
||||
}
|
||||
r6 = value7;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function clearRecentChannels(a0, a1) { // fn#87039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:1710, offset: 0x01fac834, size: 149 bytes, params: 3, frame: 18
|
||||
var moduleValue3;
|
||||
const value = a2;
|
||||
const r5 = value !== undefined ? value : null;
|
||||
(require(11361) /* metro dependency 11361: RecentChannelsActionCreators */).bulkClearRecents(a0, a1);
|
||||
const readStateActionCreatorsModule = require(5097) /* metro dependency 5097: ReadStateActionCreators */;
|
||||
readStateActionCreatorsModule.bulkAck(a1.map(function(a0) {
|
||||
var object = {channelId: a0};
|
||||
object.readStateType = ReadStateTypes.CHANNEL;
|
||||
object.messageId = ReadStateStore.lastMessageId(a0);
|
||||
return object;
|
||||
}));
|
||||
if (r5 != null) {
|
||||
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
||||
moduleValue3.transitionTo(Routes.CHANNEL(a0, r5));
|
||||
}
|
||||
}
|
||||
|
||||
function useChannelBrowserSections(a0, a1, a2, a3) { // fn#87041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:1957, offset: 0x01fac8f9, size: 205 bytes, params: 5, frame: 21
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const CHANNEL_BROWSER_NUX = DismissibleContent.CHANNEL_BROWSER_NUX;
|
||||
const value2 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[CHANNEL_BROWSER_NUX]);
|
||||
const env0_3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ChannelStore], _fun87042,
|
||||
[a0]);
|
||||
const value = a1._categories.map(_fun87043);
|
||||
if (!(value2 || a3 == null)) {
|
||||
value.unshift({rowCount: 1, rowHeight: a3});
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function useChannelBrowserChannelCount(a0) { // fn#87044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:2531, offset: 0x01faca90, size: 222 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const categories = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildCategoryStore],
|
||||
_fun87045);
|
||||
const length = categories._categories.length;
|
||||
const property = categories._categories[categories._categories.length - 1];
|
||||
if (property == null) {
|
||||
return 0;
|
||||
}
|
||||
const channel = property.channel;
|
||||
const property2 = categories[(channel == null ? value2 : channel.id) ?? 'null'];
|
||||
const value = 0;
|
||||
return property2 == null ? value : value === property2.length ? property.index + 2 - length : property2[property2.length - 1].index + 2 - length;
|
||||
}
|
||||
|
||||
function getActiveAgoTimestamp(a0) { // fn#87046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:2875, offset: 0x01facb89, size: 155 bytes, params: 2, frame: 20
|
||||
let value = a0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['8N0BHR'];
|
||||
const object2 = {};
|
||||
const defaultImport = importDefault(3738) /* metro dependency 3738 */;
|
||||
const defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = defaultImport(defaultImport2.extractTimestamp(ReadStateStore.lastMessageId(value) ?? value));
|
||||
object2.timeAgo = value.fromNow();
|
||||
return Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
}
|
||||
|
||||
function _fun87032(a0, a1) { // fn#87032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:570, offset: 0x01fac4cd, size: 229 bytes, params: 3, frame: 22
|
||||
var r0;
|
||||
var r3;
|
||||
var r2;
|
||||
var r1;
|
||||
var channel;
|
||||
var hasFlag;
|
||||
var type;
|
||||
var value2;
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var moduleValue;
|
||||
const binding = env0_3;
|
||||
let value = !binding;
|
||||
if (binding) {
|
||||
channel = a0.channel;
|
||||
hasFlag = channel.hasFlag;
|
||||
value = environment.__proto__;
|
||||
value = !Reflect.apply(hasFlag, channel, [ChannelFlags.IS_GUILD_RESOURCE_CHANNEL]);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
type = a0.channel.type;
|
||||
value = environment.__proto__;
|
||||
value2 = type !== ChannelTypes.GUILD_DIRECTORY;
|
||||
if (value2) {
|
||||
value3 = a1.length === 0;
|
||||
if (value3) {
|
||||
r2 = value3;
|
||||
} else {
|
||||
defaultImport = importDefault(6590) /* metro dependency 6590 */;
|
||||
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
value = moduleValue.computeChannelName(a0.channel, UserStore, RelationshipStore);
|
||||
value = defaultImport(a1, value.toLowerCase());
|
||||
if (value) {
|
||||
r3 = value;
|
||||
} else {
|
||||
value = a0.channel.topic.toLowerCase();
|
||||
value = value.includes(a1);
|
||||
r3 = value;
|
||||
}
|
||||
r2 = r3;
|
||||
}
|
||||
r1 = r2;
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun87033() { // fn#87033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:824, offset: 0x01fac5b2, size: 150 bytes, params: 1, frame: 16
|
||||
const object2 = {null: [], _categories: []};
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
const property = importDefault[GUILD_CATEGORY];
|
||||
property.forEach(_fun87034);
|
||||
object2._categories = require._categories.filter(_fun87037);
|
||||
let value = importDefault(5099) /* metro dependency 5099: getFlattedChannelList */;
|
||||
value = value(object2._categories, object2);
|
||||
value.forEach(setIndex_87030);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun87042() { // fn#87042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:2146, offset: 0x01fac9c6, size: 99 bytes, params: 1, frame: 22
|
||||
var r7;
|
||||
var r11;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var parent_id;
|
||||
var property;
|
||||
var value2;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
value = ChannelStore.getMutableGuildChannelsForGuild(env0_0);
|
||||
for (propertyName in value) {
|
||||
parent_id = value[propertyName].parent_id;
|
||||
if (parent_id == null) {
|
||||
r7 = propertyName2;
|
||||
continue;
|
||||
}
|
||||
property = object2[parent_id];
|
||||
value2 = 0;
|
||||
if (property != null) {
|
||||
r11 = property;
|
||||
continue;
|
||||
}
|
||||
r11 = value2;
|
||||
continue;
|
||||
object2[parent_id] = r11 + 1;
|
||||
r7 = propertyName2;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun87043(a0) { // fn#87043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:2314, offset: 0x01faca29, size: 103 bytes, params: 2, frame: 6
|
||||
const property = require[a0.channel.id];
|
||||
const object2 = {};
|
||||
let length = a0.channel.id === 'null' ? property.length : env0_3[a0.channel.id] === 0 ? 1 : property.length;
|
||||
object2.rowCount = length;
|
||||
length = property.length;
|
||||
const value3 = 0;
|
||||
object2.rowHeight = value3 === length ? value3 : importDefault;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun87045() { // fn#87045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:2616, offset: 0x01facb6e, size: 27 bytes, params: 1, frame: 11
|
||||
return GuildCategoryStore.getCategories(env0_0);
|
||||
}
|
||||
|
||||
function _fun87034({channel}) { // fn#87034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:896, offset: 0x01fac648, size: 119 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
var value;
|
||||
var binding;
|
||||
let id = channel.id;
|
||||
if (id === 'null') {
|
||||
binding = env0_0;
|
||||
value = environment.__proto__;
|
||||
binding.null = require.null.filter(_fun87035);
|
||||
}
|
||||
binding = env0_0;
|
||||
id = channel.id;
|
||||
const property = require[channel.id];
|
||||
binding[id] = property.filter(_fun87036);
|
||||
}
|
||||
|
||||
function _fun87037(a0) { // fn#87037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:1038, offset: 0x01fac6d7, size: 79 bytes, params: 2, frame: 4
|
||||
var r0;
|
||||
let value = a0.channel.id === 'null';
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = env1_2.length === 0;
|
||||
r0 = value;
|
||||
}
|
||||
r0 = !r0 ? env0_0[a0.channel.id].length > 0 : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun87035(a0) { // fn#87035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11546:950, offset: 0x01fac6bf, size: 24 bytes, params: 2, frame: 13
|
||||
return env2_4(a0, env2_2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
/* Metro module 11356; source: modules/opt_in_channels/OptInOnboardingUtils.tsx; dependencies: [1348, 1935, 1945, 4864, 3772, 5102, 1391, 6609, 6606, 1314, 2] */
|
||||
function _fun86987(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11542:6, offset: 0x01faa674, size: 266 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = hasNotSetUpChannelOptIn;
|
||||
const closure2 = optIntoAllChannelsForExistingMember;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const guildChannelStoreModule = require(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const env0_4 = guildChannelStoreModule.GUILD_SELECTABLE_CHANNELS_KEY;
|
||||
const env0_5 = guildChannelStoreModule.GUILD_VOCAL_CHANNELS_KEY;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_9 = (require(3772) /* metro dependency 3772: GuildMemberConstants */).GuildMemberFlags;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/OptInOnboardingUtils.tsx');
|
||||
exports.hasNotSetUpChannelOptIn = closure;
|
||||
exports.toggleShowAllChannels = toggleShowAllChannels;
|
||||
exports.optIntoAllChannelsForExistingMember = closure2;
|
||||
exports.hasClearedGuildOnboardingNotice = hasClearedGuildOnboardingNotice;
|
||||
}
|
||||
|
||||
function hasNotSetUpChannelOptIn(a0) { // fn#86988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11542:236, offset: 0x01faa77e, size: 167 bytes, params: 2, frame: 18
|
||||
const value2 = undefined;
|
||||
const isOptInEnabledForGuild2 = (require(5102) /* metro dependency 5102: isOptInEnabled */).isOptInEnabledForGuild(a0);
|
||||
const selfMember = GuildMemberStore.getSelfMember(a0);
|
||||
const flags = selfMember == null ? value2 : selfMember.flags;
|
||||
const value4 = 0;
|
||||
const r7 = flags ?? value4;
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const hasFlag = flagUtilsModule.hasFlag;
|
||||
const COMPLETED_ONBOARDING = GuildMemberFlags.COMPLETED_ONBOARDING;
|
||||
const hasFlag2 = Reflect.apply(hasFlag, flagUtilsModule, [r7, COMPLETED_ONBOARDING]);
|
||||
const getOptedInChannels = UserGuildSettingsStore.getOptedInChannels;
|
||||
return !isOptInEnabledForGuild2 && !hasFlag2 && !(Reflect.apply(getOptedInChannels, UserGuildSettingsStore,
|
||||
[a0]).size > value4);
|
||||
}
|
||||
|
||||
function optIntoAllChannelsForExistingMember(a0) { // fn#86989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11542:470, offset: 0x01faa825, size: 274 bytes, params: 2, frame: 19
|
||||
var set;
|
||||
let value = a1;
|
||||
const r1 = value !== undefined ? value : {};
|
||||
const include = r1.include;
|
||||
const r5 = include !== undefined ? include : new global.Set();
|
||||
if (r1.exclude === undefined) {
|
||||
set = new global.Set();
|
||||
}
|
||||
const channels = GuildChannelStore.getChannels(a0);
|
||||
const property = channels[GUILD_SELECTABLE_CHANNELS_KEY];
|
||||
const items = [];
|
||||
arraySpread(items, channels[GUILD_VOCAL_CHANNELS_KEY], arraySpread(items, property, 0, channels), channels);
|
||||
const value5 = items.filter(_fun86990).map(function(a0) {
|
||||
return a0.channel.id;
|
||||
});
|
||||
r5.forEach(_fun86992);
|
||||
value = importDefault(6606) /* metro dependency 6606: GuildOnboardingActionCreators */;
|
||||
const onboardExistingMember = value.onboardExistingMember;
|
||||
const Set = global.Set;
|
||||
const value6 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set(value5);
|
||||
Reflect.apply(onboardExistingMember, value, [a0, set instanceof Object ? set : value6]);
|
||||
}
|
||||
|
||||
function toggleShowAllChannels(a0) { // fn#86993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11542:909, offset: 0x01faa96a, size: 91 bytes, params: 2, frame: 16
|
||||
var value;
|
||||
if (hasNotSetUpChannelOptIn(a0)) {
|
||||
optIntoAllChannelsForExistingMember(a0);
|
||||
} else {
|
||||
value = require(5102) /* metro dependency 5102: isOptInEnabled */;
|
||||
value = value.isOptInEnabledForGuild(a0);
|
||||
(require(6609) /* metro dependency 6609: OptInChannelsActionCreators */).setGuildOptIn(a0, !value);
|
||||
}
|
||||
}
|
||||
|
||||
function hasClearedGuildOnboardingNotice(a0) { // fn#86994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11542:1195, offset: 0x01faa9c5, size: 158 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var moduleValue;
|
||||
var hasFlag;
|
||||
var guilds;
|
||||
let value = a1;
|
||||
const value2 = undefined;
|
||||
const r5 = value !== value2 ? value : UserSettingsProtoStore;
|
||||
value = a0 != null;
|
||||
if (value) {
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
hasFlag = moduleValue.hasFlag;
|
||||
guilds = r5.settings.guilds;
|
||||
r0 = Reflect.apply(hasFlag, moduleValue,
|
||||
[(guilds == null || guilds.guilds[a0] == null ? value2 : guilds.guilds[a0].guildOnboardingProgress) ?? 0,
|
||||
(require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildOnboardingProgress.GUILD_NOTICE_CLEARED]);
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun86990({channel}) { // fn#86990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11542:610, offset: 0x01faa937, size: 51 bytes, params: 2, frame: 12
|
||||
return !channel.isThread() && !env0_0.has(channel.id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 5095; source: modules/opt_in_channels/RecentlyActiveCollapseStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun44439(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:6, offset: 0x01170e5e, size: 295 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Set = global.Set;
|
||||
let set = new Set();
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
set = _fun44443(PersistedStore);
|
||||
set.displayName = 'RecentlyActiveCollapseStore';
|
||||
set.persistKey = 'RecentlyActiveCollapseStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{SET_RECENTLY_ACTIVE_COLLAPSED: SET_RECENTLY_ACTIVE_COLLAPSED});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/RecentlyActiveCollapseStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_44440() { // fn#44440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:148, offset: 0x01170f85, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_44440_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun44443(a0) { // fn#44443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:361, offset: 0x01170fe3, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = RecentlyActiveCollapseStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_44445}, {key: 'isCollapsed', value: value_44447},
|
||||
{key: 'getState', value: value_44448}]);
|
||||
}
|
||||
|
||||
function SET_RECENTLY_ACTIVE_COLLAPSED({guildId, collapsed}) { // fn#44449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:1063, offset: 0x011710c6, size: 50 bytes, params: 2, frame: 11
|
||||
const binding = env0_5;
|
||||
if (collapsed) {
|
||||
binding.add(guildId);
|
||||
} else {
|
||||
binding.delete(guildId);
|
||||
}
|
||||
}
|
||||
|
||||
function value_44445(a0) { // fn#44445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:726, offset: 0x01171055, size: 53 bytes, params: 2, frame: 11
|
||||
env1_5.clear();
|
||||
if (a0 != null) {
|
||||
a0.guilds.forEach(_fun44446);
|
||||
}
|
||||
}
|
||||
|
||||
function value_44447(a0) { // fn#44447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:816, offset: 0x011710a0, size: 22 bytes, params: 2, frame: 11
|
||||
return env1_5.has(a0);
|
||||
}
|
||||
|
||||
function value_44448() { // fn#44448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:868, offset: 0x011710b6, size: 16 bytes, params: 1, frame: 2
|
||||
return {guilds: env1_5};
|
||||
}
|
||||
|
||||
function _fun44446(a0) { // fn#44446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5273:775, offset: 0x0117108a, size: 22 bytes, params: 2, frame: 11
|
||||
return env2_5.add(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 5102; source: modules/opt_in_channels/isOptInEnabled.tsx; dependencies: [1867, 3784, 4864, 1878, 661, 566, 2] */
|
||||
function _fun44537(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5280:6, offset: 0x0117313c, size: 216 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.GuildFeatures;
|
||||
const env0_7 = constantsModule.Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/isOptInEnabled.tsx');
|
||||
exports.useOptInEnabledForGuild = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[5]).useStateFromStores([UserGuildSettingsStore, GuildStore, UserStore], _fun44539);
|
||||
};
|
||||
exports.isOptInEnabledForGuild = isOptInEnabledForGuild;
|
||||
exports.useShouldShowOnboardingAdminUpsellForGuild = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[5]).useStateFromStores([GuildStore, PermissionStore], _fun44542);
|
||||
};
|
||||
}
|
||||
|
||||
function useOptInEnabledForGuild(a0) { // fn#44538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5280:282, offset: 0x01173214, size: 80 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore, GuildStore,
|
||||
UserStore], _fun44539);
|
||||
}
|
||||
|
||||
function isOptInEnabledForGuild(a0) { // fn#44540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5280:583, offset: 0x011732f3, size: 119 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var features;
|
||||
const guild = GuildStore.getGuild(a0);
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
let r0 = a0 != null && guild != null && currentUser != null;
|
||||
if (r0) {
|
||||
features = guild.features;
|
||||
r1 = features.has(GuildFeatures.COMMUNITY) || currentUser.isStaff();
|
||||
r1 = r1 && UserGuildSettingsStore.isOptInEnabled(a0);
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useShouldShowOnboardingAdminUpsellForGuild(a0) { // fn#44541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5280:805, offset: 0x0117336a, size: 72 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore, PermissionStore], _fun44542);
|
||||
}
|
||||
|
||||
function _fun44539() { // fn#44539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5280:361, offset: 0x01173264, size: 143 bytes, params: 1, frame: 16
|
||||
var r3;
|
||||
let value = environment.__proto__;
|
||||
const isOptInEnabled = UserGuildSettingsStore.isOptInEnabled;
|
||||
const binding = env0_0;
|
||||
const isOptInEnabled2 = Reflect.apply(isOptInEnabled, UserGuildSettingsStore, [binding]);
|
||||
const guild = GuildStore.getGuild(binding);
|
||||
const value4 = undefined;
|
||||
const r5 = guild == null ? value4 : guild.features.has(GuildFeatures.COMMUNITY);
|
||||
const r1 = r5 != null && r5;
|
||||
value = UserStore.getCurrentUser();
|
||||
if (value == null) {
|
||||
r3 = value4;
|
||||
} else {
|
||||
value = value.isStaff();
|
||||
r3 = value;
|
||||
}
|
||||
return isOptInEnabled2 && (!r1 ? r3 != null && r3 : r1);
|
||||
}
|
||||
|
||||
function _fun44542() { // fn#44542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5280:901, offset: 0x011733b2, size: 140 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const guild = GuildStore.getGuild(env0_0);
|
||||
let can = PermissionStore.can;
|
||||
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
|
||||
const value4 = Reflect.apply(can, PermissionStore, [MANAGE_GUILD, guild]);
|
||||
can = PermissionStore.can;
|
||||
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
||||
const value5 = Reflect.apply(can, PermissionStore, [MANAGE_ROLES, guild]);
|
||||
const r5 = guild == null ? undefined : guild.features.has(GuildFeatures.GUILD_ONBOARDING_EVER_ENABLED);
|
||||
return guild != null && value4 && value5 && !(r5 != null && r5);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,388 @@
|
||||
/* Metro module 11357; source: modules/opt_in_channels/native/ChannelBrowser.tsx; dependencies: [57, 31, 27, 5096, 5098, 1935, 1867, 4864, 661, 6233, 1376, 33, 4501, 697, 1357, 3860, 5463, 11358, 566, 11360, 3968, 1365, 11356, 6984, 8416, 6239, 5278, 1244, 6988, 5475, 11362, 4573, 4805, 3874, 6231, 7974, 6647, 8950, 6242, 1305, 6622, 2] */
|
||||
function _fun86995(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:6, offset: 0x01faaa63, size: 981 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const keyExtractor_86996 = function({section, row}) {
|
||||
return '' + section + '-' + row;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const newChannelsStore = importDefault(5096) /* metro dependency 5096: NewChannelsStore */;
|
||||
const guildCategoryStore = importDefault(5098) /* metro dependency 5098: GuildCategoryStore */;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
const env0_11 = (require(6233) /* metro dependency 6233: TableRowConstants */).getTableDividerWidth;
|
||||
const env0_12 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value2.jsx;
|
||||
const env0_14 = value2.jsxs;
|
||||
const env0_15 = value2.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {flex: 1};
|
||||
const object5 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.marginTop = PX_12;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginHorizontal = PX_16;
|
||||
object2.header = object5;
|
||||
const object6 = {'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center'};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object6.paddingTop = PX_24;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.paddingBottom = PX_8;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object2.categoryContainer = object6;
|
||||
object2.categoryTitle = {marginBottom: 0};
|
||||
object2.channelTitle = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.selectAllContainer = {'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center',
|
||||
'alignItems': 'center', 'flexShrink': 0};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.selectAllCheckbox = {marginRight: PX_4, transform: [{scale: 0.75}]};
|
||||
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
||||
object2.newBadge = {fontFamily: DISPLAY_EXTRABOLD};
|
||||
const object7 = {'position': 'relative', 'padding': 0, 'marginTop': null, 'paddingTop': null, 'marginBottom': 0,
|
||||
'borderRadius': null, 'alignItems': 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.marginTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.paddingTop = PX_16;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object2.nuxCard = object7;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object2.nuxCloseContainer = {'position': 'absolute', 'color': null, 'top': 16, 'right': 16,
|
||||
color: INTERACTIVE_TEXT_DEFAULT};
|
||||
const object8 = {'width': '100%', 'backgroundColor': null, 'alignItems': 'center', 'padding': 16};
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object8.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object8.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object8.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.nuxHeader = object8;
|
||||
object2.nuxHeaderText = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
|
||||
object2.nuxBody = {'textAlign': 'center', 'marginBottom': 4};
|
||||
const env0_16 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const env0_17 = value.memo(_fun86997);
|
||||
const env0_18 = value.memo(_fun87000);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/native/ChannelBrowser.tsx');
|
||||
exports.default = ChannelBrowser;
|
||||
}
|
||||
|
||||
function _fun86997({channel, onChannelClick}) { // fn#86997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:1618, offset: 0x01faae65, size: 557 bytes, params: 2, frame: 30
|
||||
var object2;
|
||||
var r8;
|
||||
var items2;
|
||||
var Text;
|
||||
var intl;
|
||||
var view;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
function() {
|
||||
var channelBinding = channel;
|
||||
return UserGuildSettingsStore.isChannelOptedIn(channelBinding.guild_id, channelBinding.id);
|
||||
});
|
||||
const value5 = channel.id === 'null';
|
||||
const value6 = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useCheckboxA11yNative({checked: value4});
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
object2 = {style: styles.categoryContainer, onPress: function() {
|
||||
var onChannelClickBinding = onChannelClick;
|
||||
var channelBinding = channel;
|
||||
return onChannelClickBinding(channelBinding.guild_id, channelBinding.id, channelBinding.id);
|
||||
}, accessibilityRole: value5 ? 'text' : value6.accessibilityRole,
|
||||
accessibilityState: value5 ? undefined : value6.accessibilityState};
|
||||
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
|
||||
const TableRowGroupTitle = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroupTitle;
|
||||
const tableRowGroupTitle = <TableRowGroupTitle style={styles.categoryTitle} title={value3} lineClamp={1} />;
|
||||
if (value5) {
|
||||
r8 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.selectAllContainer, accessibilityRole: value6.accessibilityRole,
|
||||
accessibilityState: value6.accessibilityState};
|
||||
view = <View style={styles.selectAllCheckbox}>{((FormCheckbox) => <FormCheckbox checked={value4} />)((require(7974) /* metro dependency 7974: FormCheckboxNative */).FormCheckbox)}</View>;
|
||||
items2 = [view];
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text variant="text-xs/semibold" color="interactive-text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mSQwnW)}</Text>;
|
||||
view = <View {...viewBindingProps}>{items2}</View>;
|
||||
r8 = view;
|
||||
}
|
||||
return (
|
||||
<PressableOpacity {...object2}>
|
||||
<>
|
||||
{tableRowGroupTitle}
|
||||
{r8}
|
||||
</>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87000({channel, guild, isFirst, isLast, forceChecked, onChannelClick}) { // fn#87000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:2469, offset: 0x01fab0dd, size: 1068 bytes, params: 2, frame: 40
|
||||
var object2;
|
||||
var r15;
|
||||
var r18;
|
||||
var r10;
|
||||
var moduleValue4;
|
||||
var TextBadge;
|
||||
var intl;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const [property, env0_3] = env0_3Binding(env0_4.useState(0), 2);
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
function() {
|
||||
var channelBinding = channel;
|
||||
return UserGuildSettingsStore.isChannelOptedIn(channelBinding.guild_id, channelBinding.id);
|
||||
});
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([NewChannelsStore], function() {
|
||||
return NewChannelsStore.shouldIndicateNewChannel(guild?.id, channel.id);
|
||||
}, [channel.id, guild]);
|
||||
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
_fun87003);
|
||||
const value8 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
|
||||
const topic = channel.topic;
|
||||
let r1 = topic != null && topic.length !== 0;
|
||||
r1 = !r1 ? channel.isGuildVocal() : r1;
|
||||
if (r1) {
|
||||
r15 = topic;
|
||||
} else {
|
||||
moduleValue4 = require(11360) /* metro dependency 11360: OptInChannelsUtils */;
|
||||
r15 = moduleValue4.getActiveAgoTimestamp(channel.id);
|
||||
}
|
||||
const value13 = env0_4.useCallback(_fun87004, []);
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_LABEL_TEXT_STYLE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_LABEL_TEXT_STYLE;
|
||||
const value14 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_LABEL_TEXT_STYLE]);
|
||||
const moduleValue6 = useTokenModule;
|
||||
useToken = moduleValue6.useToken;
|
||||
const TABLE_ROW_LABEL_COLOR = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_LABEL_COLOR;
|
||||
const value15 = Reflect.apply(useToken, moduleValue6, [TABLE_ROW_LABEL_COLOR]);
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
const channelIconWithGuild = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconWithGuild(channel,
|
||||
guild);
|
||||
const channelIconComponent = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponent(channel,
|
||||
{isRulesChannel: guild?.rulesChannelId === channel.id});
|
||||
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
|
||||
object2 = {start: isFirst, end: isLast, disabled: value7};
|
||||
const TableRowIcon = (require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon;
|
||||
object2.icon = <TableRowIcon source={channelIconWithGuild} IconComponent={channelIconComponent} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text lineClamp={1} style={[value6 ? {marginRight: property + 8} : undefined]} variant={value14} color={value15}>{value8}</Text>;
|
||||
if (value6) {
|
||||
var viewBinding2Props = {style: {marginLeft: -property}, onLayout: value13};
|
||||
TextBadge = (require(1305) /* metro dependency 1305: native */).TextBadge;
|
||||
var textBadgeProps = {color: (require(1305) /* metro dependency 1305: native */).BadgeColors.BRAND};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
textBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA);
|
||||
textBadgeProps.textStyle = styles.newBadge;
|
||||
r18 = <View {...viewBinding2Props}><TextBadge {...textBadgeProps} /></View>;
|
||||
} else {
|
||||
r18 = value6;
|
||||
}
|
||||
object2.label = <View style={styles.channelTitle}>{text}{r18}</View>;
|
||||
if (r15 != null) {
|
||||
if (r15.length > 0) {
|
||||
value = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
value = value.parseTopic(r15, true, {channelId: channel.id, shouldCloseModal: true});
|
||||
r10 = value;
|
||||
} else {
|
||||
r10 = null;
|
||||
}
|
||||
} else {
|
||||
r10 = null;
|
||||
}
|
||||
object2.subLabel = r10;
|
||||
object2.subLabelLineClamp = 1;
|
||||
object2.onPress = function() {
|
||||
var onChannelClickBinding = onChannelClick;
|
||||
var id = guild.id;
|
||||
var channelBinding = channel;
|
||||
return onChannelClickBinding(id, channelBinding.id, channelBinding.parent_id);
|
||||
};
|
||||
let r5 = value5 || value7;
|
||||
r5 = !r5 ? forceChecked : r5;
|
||||
object2.checked = r5;
|
||||
return <TableCheckboxRow {...object2} />;
|
||||
}
|
||||
|
||||
function ChannelBrowser({guildId}) { // fn#87006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:4065, offset: 0x01fab5ca, size: 1470 bytes, params: 2, frame: 45
|
||||
var r10;
|
||||
var Card;
|
||||
var PressableOpacity;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items3;
|
||||
var nuxBody;
|
||||
const value2 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('ChannelBrowser');
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_HEIGHT;
|
||||
const value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_HEIGHT]);
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const [property, env0_1] = env0_3(binding.useState(''), 2);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
const onChannelClick = (importDefault(11358) /* metro dependency 11358: useBatchUpdateChannelSettings */)(guildId).onChannelClick;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const guild = Reflect.apply(useStateFromStores, fluxModule, [[GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
}]);
|
||||
const categories = fluxModule.useStateFromStores([GuildCategoryStore], function() {
|
||||
return GuildCategoryStore.getCategories(guildId);
|
||||
});
|
||||
const moduleValue4 = fluxModule;
|
||||
useStateFromStores = moduleValue4.useStateFromStores;
|
||||
const value6 = (require(11360) /* metro dependency 11360: OptInChannelsUtils */).useFilterCategoriesByQuery(guildId,
|
||||
categories, Reflect.apply(useStateFromStores, moduleValue4, [[GuildChannelStore], function() {
|
||||
return GuildChannelStore.getChannels(guildId);
|
||||
}]), property);
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
let CHANNEL_BROWSER_NUX = DismissibleContent.CHANNEL_BROWSER_NUX;
|
||||
const value7 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[CHANNEL_BROWSER_NUX]);
|
||||
const value9 = binding.useMemo(_fun87010, [value6,
|
||||
(require(11360) /* metro dependency 11360: OptInChannelsUtils */).useChannelBrowserSections(guildId, value6,
|
||||
64)]);
|
||||
const hasNotSetUpChannelOptIn2 = (require(11356) /* metro dependency 11356: OptInOnboardingUtils */).hasNotSetUpChannelOptIn(guildId);
|
||||
binding.useEffect(function() {
|
||||
var moduleValue = require(dependencyMap[20]);
|
||||
var CHANNEL_BROWSER_NEW_BADGE_NUX = require(dependencyMap[21]).DismissibleContent.CHANNEL_BROWSER_NEW_BADGE_NUX;
|
||||
moduleValue.UNSAFE_markDismissibleContentAsDismissed(CHANNEL_BROWSER_NEW_BADGE_NUX,
|
||||
{dismissAction: ContentDismissActionType.DISMISS});
|
||||
});
|
||||
const value10 = binding.useCallback(_fun87013, [guild, hasNotSetUpChannelOptIn2, onChannelClick]);
|
||||
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
const view = <View style={styles.header}><SearchField size="md" onChange={onChange_87014} /></View>;
|
||||
const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
|
||||
const object = {};
|
||||
if (value7) {
|
||||
r10 = null;
|
||||
} else {
|
||||
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
var cardProps = {style: styles.nuxCard};
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
string = intl.string;
|
||||
items2 = [<PressableOpacity onPress={function() {
|
||||
var moduleValue = require(dependencyMap[20]);
|
||||
var CHANNEL_BROWSER_NUX = require(dependencyMap[21]).DismissibleContent.CHANNEL_BROWSER_NUX;
|
||||
moduleValue.UNSAFE_markDismissibleContentAsDismissed(CHANNEL_BROWSER_NUX,
|
||||
{dismissAction: ContentDismissActionType.DISMISS});
|
||||
}} accessibilityRole="button" accessibilityLabel={Reflect.apply(string, intl,
|
||||
[t.cpT0Cq])} style={styles.nuxCloseContainer}>{((CircleXIcon) => <CircleXIcon />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>];
|
||||
items2[1] = ((Component) => <Component source={importDefault(11362) /* metro dependency 11362 */} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
var viewBinding2Props = {style: styles.nuxHeader};
|
||||
string = intl.string;
|
||||
items3 = [<View style={styles.nuxHeaderText}><Text variant="heading-lg/semibold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
|
||||
intl, [t.utqWEC])}</Text></View>];
|
||||
nuxBody = styles.nuxBody;
|
||||
string = intl.string;
|
||||
items3[1] = <Text variant="text-sm/normal" color="text-default" style={nuxBody}>{Reflect.apply(string, intl,
|
||||
[t['+9etcM']])}</Text>;
|
||||
nuxBody = styles.nuxBody;
|
||||
items3[2] = <Text variant="text-sm/normal" color="text-default" style={nuxBody}>{intl.format(t.Z0axjk,
|
||||
{})}</Text>;
|
||||
items2[2] = <View {...viewBinding2Props}>{items3}</View>;
|
||||
r10 = <Card {...cardProps}>{items2}</Card>;
|
||||
}
|
||||
object.ListHeaderComponent = r10;
|
||||
object.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.et6wav);
|
||||
object.renderItem = value10;
|
||||
object.data = value9;
|
||||
object.estimatedItemSize = value3 + getTableDividerWidth(value2);
|
||||
const object2 = {};
|
||||
const bottom = insets.bottom;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.paddingBottom = bottom + PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.paddingHorizontal = PX_16;
|
||||
object.contentContainerStyle = object2;
|
||||
object.keyExtractor = keyExtractor_86996;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<FlashList {...object} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87003() { // fn#87003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:2814, offset: 0x01fab542, size: 58 bytes, params: 1, frame: 14
|
||||
return channel.parent_id != null && UserGuildSettingsStore.isChannelOptedIn(channel.guild_id, channel.parent_id);
|
||||
}
|
||||
|
||||
function _fun87004({nativeEvent}) { // fn#87004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:3010, offset: 0x01fab57c, size: 36 bytes, params: 2, frame: 11
|
||||
env0_3(nativeEvent.layout.width);
|
||||
}
|
||||
|
||||
function _fun87010() { // fn#87010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:4700, offset: 0x01fabbbe, size: 36 bytes, params: 1, frame: 12
|
||||
env0_5.forEach(_fun87011);
|
||||
return [];
|
||||
}
|
||||
|
||||
function _fun87013(a0) { // fn#87013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:5227, offset: 0x01fabd10, size: 162 bytes, params: 2, frame: 20
|
||||
const {isSection, row, isLast, channel} = a0.item;
|
||||
const value = null;
|
||||
return value == channel ? value : isSection ? ((Component) => <Component channel={channel} onChannelClick={onChannelClick} key={channel.id} />)(env1_17) : ((Component) => <Component channel={channel} guild={guild} isFirst={row === 0} isLast={isLast} forceChecked={env0_6} onChannelClick={onChannelClick} key={channel.id} />)(env1_18);
|
||||
}
|
||||
|
||||
function _fun87011(a0, a1) { // fn#87011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11543:4732, offset: 0x01fabbe2, size: 222 bytes, params: 3, frame: 24
|
||||
var r8;
|
||||
var channel;
|
||||
var value2;
|
||||
var channel2;
|
||||
var binding;
|
||||
var push;
|
||||
var binding2;
|
||||
var id;
|
||||
var property;
|
||||
var binding3;
|
||||
var length;
|
||||
let rowCount = a0.rowCount;
|
||||
let value = 0;
|
||||
if (rowCount > value) {
|
||||
value2 = environment.__proto__;
|
||||
channel2 = env1_4._categories[a1].channel;
|
||||
binding = env0_0;
|
||||
binding.push({'isSection': true, 'section': null, 'row': -1, 'channel': null, 'isLast': false, section: a1,
|
||||
channel: channel2});
|
||||
rowCount = a0.rowCount;
|
||||
if (value < rowCount) {
|
||||
r8 = value;
|
||||
while (true) {
|
||||
binding = env0_0;
|
||||
push = binding.push;
|
||||
binding2 = env1_4;
|
||||
id = channel2.id;
|
||||
property = binding2[id][r8];
|
||||
value = undefined;
|
||||
channel = property == null ? value : property.channel;
|
||||
binding3 = env1_4;
|
||||
id = channel2.id;
|
||||
length = binding3[id].length;
|
||||
Reflect.apply(push, binding, [{isSection: false, section: a1, row: r8, channel: channel,
|
||||
isLast: r8 >= length - 1}]);
|
||||
value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
||||
rowCount = a0.rowCount;
|
||||
if (value < rowCount) {
|
||||
r8 = value;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 11358; source: modules/opt_in_channels/useBatchUpdateChannelSettings.tsx; dependencies: [31, 5090, 4864, 661, 694, 566, 6609, 11359, 11356, 2] */
|
||||
function _fun87016(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:6, offset: 0x01fabe02, size: 186 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const categoryCollapseStore = importDefault(5090) /* metro dependency 5090: CategoryCollapseStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/useBatchUpdateChannelSettings.tsx');
|
||||
exports.default = useBatchUpdateChannelSettings;
|
||||
}
|
||||
|
||||
function useBatchUpdateChannelSettings(a0) { // fn#87018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:359, offset: 0x01fabebc, size: 159 bytes, params: 2, frame: 16
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const pendingChannelUpdates = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
_fun87019);
|
||||
const binding = env0_3;
|
||||
binding.useEffect(_fun87020, [a0]);
|
||||
binding.useEffect(_fun87022, [a0, pendingChannelUpdates]);
|
||||
object2 = {};
|
||||
object2.onChannelClick = binding.useCallback(_fun87023, []);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun87019() { // fn#87019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:439, offset: 0x01fabf5b, size: 29 bytes, params: 1, frame: 11
|
||||
return UserGuildSettingsStore.getPendingChannelUpdates(env0_0);
|
||||
}
|
||||
|
||||
function _fun87020() { // fn#87020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:495, offset: 0x01fabf78, size: 32 bytes, params: 1, frame: 11
|
||||
resetStoreState_87017(env0_0);
|
||||
return _fun87021;
|
||||
}
|
||||
|
||||
function _fun87022() { // fn#87022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:562, offset: 0x01fabfaf, size: 62 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (pendingChannelUpdates != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(6609) /* metro dependency 6609: OptInChannelsActionCreators */;
|
||||
moduleValue.updateOptInChannelsBatched(env0_0, pendingChannelUpdates);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87023(a0, a1, a2) { // fn#87023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:656, offset: 0x01fabfed, size: 355 bytes, params: 4, frame: 22
|
||||
var optIntoAllChannelsForExistingMember;
|
||||
var Set;
|
||||
var value4;
|
||||
var set;
|
||||
var value6;
|
||||
let value = environment.__proto__;
|
||||
const isChannelOptedIn2 = UserGuildSettingsStore.isChannelOptedIn(a0, a1);
|
||||
const value2 = !isChannelOptedIn2;
|
||||
if ((isChannelOptedIn2 ? value2 : CategoryCollapseStore.isCollapsed(a2)) && a2 != null) {
|
||||
(require(11359) /* metro dependency 11359: CategoryCollapseActionCreators */).categoryExpand(a2);
|
||||
}
|
||||
const optInOnboardingUtilsModule = require(11356) /* metro dependency 11356: OptInOnboardingUtils */;
|
||||
if (optInOnboardingUtilsModule.hasNotSetUpChannelOptIn(a0)) {
|
||||
if (a1 === a2) {
|
||||
value = optInOnboardingUtilsModule;
|
||||
optIntoAllChannelsForExistingMember = value.optIntoAllChannelsForExistingMember;
|
||||
Set = global.Set;
|
||||
value6 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set([a1]);
|
||||
Reflect.apply(optIntoAllChannelsForExistingMember, value, [a0,
|
||||
{include: set instanceof Object ? set : value6}]);
|
||||
} else {
|
||||
value = require(11356) /* metro dependency 11356: OptInOnboardingUtils */;
|
||||
optIntoAllChannelsForExistingMember = value.optIntoAllChannelsForExistingMember;
|
||||
Set = global.Set;
|
||||
value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set([a1]);
|
||||
Reflect.apply(optIntoAllChannelsForExistingMember, value, [a0,
|
||||
{exclude: set instanceof Object ? set : value4}]);
|
||||
}
|
||||
} else {
|
||||
(require(6609) /* metro dependency 6609: OptInChannelsActionCreators */).updateOptInChannelsImmediate(a0, a1,
|
||||
value2, {section: AnalyticsSections.CHANNEL_BROWSER});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87021() { // fn#87021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11544:519, offset: 0x01fabf98, size: 23 bytes, params: 1, frame: 11
|
||||
resetStoreState_87017(env1_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 11319; source: modules/opt_in_channels/useShowChannelOptInNotice.tsx; dependencies: [4864, 661, 1386, 5102, 566, 5103, 2] */
|
||||
function _fun86342(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:6, offset: 0x01f91e9d, size: 158 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).NULL_STRING_GUILD_ID;
|
||||
const env0_4 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/useShowChannelOptInNotice.tsx');
|
||||
exports.default = useShowChannelOptInNotice;
|
||||
}
|
||||
|
||||
function useShowChannelOptInNotice(a0) { // fn#86343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:257, offset: 0x01f91f3b, size: 238 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const isOptInEnabledModule = require(5102) /* metro dependency 5102: isOptInEnabled */;
|
||||
const useOptInEnabledForGuild = isOptInEnabledModule.useOptInEnabledForGuild;
|
||||
let r0 = a0 == null ? value2 : a0.getGuildId();
|
||||
r0 = r0 != null ? a0.guild_id : NULL_STRING_GUILD_ID;
|
||||
const value4 = Reflect.apply(useOptInEnabledForGuild, isOptInEnabledModule, [r0]);
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
_fun86344);
|
||||
const value6 = (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome((a0 == null ? value2 : a0.guild_id) ?? NULL_STRING_GUILD_ID);
|
||||
if (a0 == null) {
|
||||
return false;
|
||||
}
|
||||
return value4 && !(value6 && a0.hasFlag(ChannelFlags.IS_GUILD_RESOURCE_CHANNEL)) && !value5 && !a0.isThread();
|
||||
}
|
||||
|
||||
function _fun86344() { // fn#86344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:421, offset: 0x01f92029, size: 40 bytes, params: 1, frame: 12
|
||||
return env0_0 != null && UserGuildSettingsStore.isChannelRecordOrParentOptedIn(env0_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user