1345 lines
75 KiB
TypeScript
1345 lines
75 KiB
TypeScript
/* Metro module 7238; source: modules/autocompleter/UserSearchManager.tsx; dependencies: [15, 17, 18, 6, 7, 1383, 1885, 1379, 1945, 3793, 1878, 661, 3995, 1391, 491, 22, 21, 7239, 1360, 1216, 4860, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import SnowflakeUtils from '../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
|
|
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import UserRecord from '../../records/UserRecord.tsx'; /* Metro dependency 1885 */
|
|
import GuildMemberStore from '../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
|
|
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
|
|
import UserUtils from '../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
|
|
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ChannelRecordModule from '../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
|
|
|
|
function _fun58103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6, offset: 0x016bfb2f, size: 515 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const _arrayLikeToArray_58106 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const setNick = function(a0, a1, a2) {
|
|
var value = a2;
|
|
var value2 = null;
|
|
if (value2 != a0) {
|
|
a0.nicknames[a1] = value2 != value ? value === '' ? value2 : value : value2;
|
|
}
|
|
};
|
|
const getDMUpdates = function(a0) {
|
|
var recipients;
|
|
var env0_0 = a0;
|
|
var items = [];
|
|
var env0_1 = items;
|
|
if (a0 != null) {
|
|
if (isPrivate(a0.type)) {
|
|
recipients = a0.recipients;
|
|
(recipients !== undefined ? recipients : []).forEach(_fun58113);
|
|
return items;
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
const updateMembersList = function(a0, a1) {
|
|
var env0_0 = a1;
|
|
a0.forEach(_fun58115);
|
|
return [];
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {UPDATE_USERS: 'UPDATE_USERS', USER_RESULTS: 'USER_RESULTS', QUERY_SET: 'QUERY_SET',
|
|
QUERY_CLEAR: 'QUERY_CLEAR', REQUEST_DEBUG_STATE: 'REQUEST_DEBUG_STATE', DEBUG_STATE: 'DEBUG_STATE'};
|
|
let value = _fun58118();
|
|
let value5 = new _fun58128(AutomaticLifecycleManager)();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/autocompleter/UserSearchManager.tsx');
|
|
exports.default = value5;
|
|
exports.UserSearchContext = value;
|
|
function _createForOfIteratorHelperLoose_58104(a0, a1) { // fn#58104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:244, offset: 0x016bfd32, size: 370 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun58105;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_58106(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_58106(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_58106(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun58105;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
function _fun58105() { // fn#58105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:815, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function _isNativeReflectConstruct_58107() { // fn#58107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:1154, offset: 0x016bfea4, 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_58107_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function getTransformedUser(a0) { // fn#58110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:1566, offset: 0x016bff02, size: 481 bytes, params: 2, frame: 20
|
|
var moduleValue;
|
|
var moduleValue2;
|
|
if (a0 == null) {
|
|
return null;
|
|
}
|
|
let relationshipStoreBinding = RelationshipStore;
|
|
if (relationshipStoreBinding.isBlockedOrIgnored(a0.id)) {
|
|
return null;
|
|
}
|
|
const object = {};
|
|
object.id = a0.id;
|
|
object.username = a0.discriminator !== '0' ? '' + a0.username + '#' + a0.discriminator : a0.username;
|
|
object.nicknames = {};
|
|
const defaultImport = UserUtils;
|
|
const getGlobalName = defaultImport.getGlobalName;
|
|
if (Reflect.apply(getGlobalName, defaultImport, [a0]) != null) {
|
|
object.globalName = a0.globalName;
|
|
}
|
|
if (a0.bot) {
|
|
object.isBot = true;
|
|
}
|
|
if (a0 instanceof UserRecord) {
|
|
object.isProvisional = a0.isProvisional;
|
|
} else if ('flags' in a0) {
|
|
moduleValue = importAll(1391) /* metro dependency 1391: FlagUtils */;
|
|
object.isProvisional = moduleValue.hasFlag(a0.flags ?? 0, UserFlags.PROVISIONAL_ACCOUNT);
|
|
} else {
|
|
object.isProvisional = false;
|
|
}
|
|
if (Reflect.apply(RelationshipStore.isFriend, relationshipStoreBinding, [a0.id])) {
|
|
object.isFriend = true;
|
|
relationshipStoreBinding = RelationshipStore;
|
|
object.friendNickname = relationshipStoreBinding.getNickname(a0.id);
|
|
}
|
|
if (a0 instanceof UserRecord) {
|
|
object.isStaff = a0.isStaff();
|
|
} else if ('flags' in a0) {
|
|
moduleValue2 = importAll(1391) /* metro dependency 1391: FlagUtils */;
|
|
object.isStaff = moduleValue2.hasFlag(a0.flags ?? 0, UserFlags.STAFF);
|
|
} else {
|
|
object.isStaff = false;
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function getDMUpdates(a0) { // fn#58112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:2312, offset: 0x016c0116, size: 78 bytes, params: 2, frame: 14
|
|
var recipients;
|
|
const env0_0 = a0;
|
|
const items2 = [];
|
|
if (a0 != null) {
|
|
if (isPrivate(a0.type)) {
|
|
recipients = a0.recipients;
|
|
(recipients !== undefined ? recipients : []).forEach(_fun58113);
|
|
return items2;
|
|
}
|
|
}
|
|
return items2;
|
|
function _fun58113(a0) { // fn#58113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:2430, offset: 0x016c0164, size: 80 bytes, params: 2, frame: 15
|
|
const transformedUser = getTransformedUser(UserStore.getUser(a0));
|
|
if (env0_0 != null) {
|
|
setNick(transformedUser, env0_0.id);
|
|
}
|
|
env0_1.push(transformedUser);
|
|
}
|
|
|
|
}
|
|
|
|
function updateMembersList(a0, a1) { // fn#58114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:2513, offset: 0x016c01b4, size: 37 bytes, params: 3, frame: 12
|
|
const env0_0 = a1;
|
|
a0.forEach(_fun58115);
|
|
return [];
|
|
function _fun58115(a0) { // fn#58115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:2572, offset: 0x016c01d9, size: 68 bytes, params: 2, frame: 16
|
|
const getTransformedUserBinding = getTransformedUser;
|
|
const user = a0.user;
|
|
const transformedUserBinding = getTransformedUserBinding(user);
|
|
if (transformedUserBinding != null) {
|
|
setNick(transformedUserBinding, require, a0.nick);
|
|
env0_1.push(transformedUserBinding);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getUsersFromMessage({message, nicknameContextId}) { // fn#58116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:2655, offset: 0x016c021d, size: 212 bytes, params: 2, frame: 19
|
|
var transformedUser;
|
|
const channel = ChannelStore.getChannel(message.channel_id);
|
|
const r7 = nicknameContextId ?? (channel?.isPrivate() === true ? channel?.id : channel?.getGuildId());
|
|
const items2 = [];
|
|
if (message.author != null) {
|
|
transformedUser = getTransformedUser(message.author);
|
|
if (transformedUser != null) {
|
|
items2.push(transformedUser);
|
|
if (r7 != null) {
|
|
setNick(transformedUser, r7);
|
|
}
|
|
}
|
|
}
|
|
const mentions = message.mentions;
|
|
if (mentions != null) {
|
|
mentions.forEach(_fun58117);
|
|
}
|
|
return items2;
|
|
function _fun58117(a0) { // fn#58117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:2992, offset: 0x016c02f1, size: 64 bytes, params: 2, frame: 16
|
|
const transformedUser = getTransformedUser(a0);
|
|
if (transformedUser != null) {
|
|
env0_1.push(transformedUser);
|
|
if (env0_0 != null) {
|
|
setNick(transformedUser, env0_0);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun58118() { // fn#58118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:3078, offset: 0x016c0331, size: 193 bytes, params: 1, frame: 15
|
|
return CreateClass(UserSearchContext, [{key: 'setLimit', value: function(a0) {
|
|
this._limit = a0;
|
|
if (this._nextQuery != null) {
|
|
this._nextQuery.limit = a0;
|
|
}
|
|
}}, {key: 'subscribe', value: function() {
|
|
if (!(this._worker == null || this._subscribed)) {
|
|
this._worker.addEventListener('message', this.handleMessages, false);
|
|
this._subscribed = true;
|
|
this._setNextQuery();
|
|
}
|
|
}}, {key: 'unsubscribe', value: function() {
|
|
if (this._worker != null && this._subscribed) {
|
|
this._worker.removeEventListener('message', this.handleMessages, false);
|
|
this._subscribed = false;
|
|
}
|
|
}}, {key: 'destroy', value: function() {
|
|
this.clearQuery();
|
|
this.unsubscribe();
|
|
}}, {key: 'clearQuery', value: value_58125}, {key: 'setQuery', value: function({query, filters, blacklist, boosters,
|
|
boosterFallback}) {
|
|
this._nextQuery = {query: query, filters: filters, blacklist: blacklist, boosters: boosters ?? ({}),
|
|
boosterFallback: boosterFallback ?? 1, limit: this._limit};
|
|
this._setNextQuery();
|
|
}}, {key: '_setNextQuery', value: value_58127}]);
|
|
function UserSearchContext(a0, a1) { // fn#58119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:3099, offset: 0x016c03f2, size: 146 bytes, params: 3, frame: 16
|
|
var environment;
|
|
let value = a2;
|
|
const r1 = value !== undefined ? value : 10;
|
|
value = environment.__proto__;
|
|
env1_7(this, UserSearchContext);
|
|
this.handleMessages = handleMessages;
|
|
this._worker = a0;
|
|
value = require(491) /* metro dependency 491 */;
|
|
this._uuid = value.v4();
|
|
this._callback = a1;
|
|
this._limit = r1;
|
|
this._currentQuery = null;
|
|
this._nextQuery = null;
|
|
this._subscribed = false;
|
|
this.subscribe();
|
|
function handleMessages({data}) { // fn#58120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:3182, owner: UserSearchContext.handleMessages, offset: 0x016c0484, size: 150 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var type;
|
|
var _currentQuery;
|
|
var binding;
|
|
let value = data != null;
|
|
if (value) {
|
|
type = data.type;
|
|
value = environment.__proto__.__proto__;
|
|
value = type === env2_16.USER_RESULTS;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
r0 = r0 && data.uuid === env0_0._uuid;
|
|
if (r0) {
|
|
_currentQuery = env0_0._currentQuery;
|
|
if (_currentQuery !== false) {
|
|
binding = env0_0;
|
|
binding._callback(data.payload);
|
|
}
|
|
_currentQuery = env0_0._currentQuery;
|
|
if (_currentQuery != null) {
|
|
env0_0._currentQuery = null;
|
|
}
|
|
binding = env0_0;
|
|
binding._setNextQuery();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_58125() { // fn#58125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:4078, offset: 0x016c05f1, size: 92 bytes, params: 1, frame: 12
|
|
var postMessage;
|
|
this._currentQuery = false;
|
|
this._nextQuery = null;
|
|
let _worker = this._worker;
|
|
let value = _worker != null;
|
|
if (value && this._subscribed) {
|
|
_worker = this._worker;
|
|
postMessage = _worker.postMessage;
|
|
value = environment.__proto__;
|
|
Reflect.apply(postMessage, _worker, [{uuid: this._uuid, type: env1_16.QUERY_CLEAR}]);
|
|
}
|
|
}
|
|
|
|
function value_58127() { // fn#58127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:4494, offset: 0x016c06bf, size: 166 bytes, params: 1, frame: 13
|
|
var _worker;
|
|
var postMessage;
|
|
let r1 = this._currentQuery != null && this._currentQuery !== false;
|
|
r1 = !r1 ? this._nextQuery == null : r1;
|
|
if (!r1) {
|
|
_worker = this._worker;
|
|
if (_worker == null) {
|
|
if (!this._subscribed) {
|
|
this.subscribe();
|
|
}
|
|
} else if (this._subscribed) {
|
|
this._currentQuery = this._nextQuery;
|
|
this._nextQuery = null;
|
|
_worker = this._worker;
|
|
postMessage = _worker.postMessage;
|
|
value = environment.__proto__;
|
|
Reflect.apply(postMessage, _worker, [{uuid: this._uuid, type: env1_16.QUERY_SET,
|
|
payload: this._currentQuery}]);
|
|
} else if (!this._subscribed) {
|
|
this.subscribe();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun58128(a0) { // fn#58128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:4812, offset: 0x016c0765, size: 185 bytes, params: 2, frame: 16
|
|
const UserSearchManager2 = UserSearchManager;
|
|
Inherits(UserSearchManager2, a0);
|
|
return CreateClass(UserSearchManager2, [{key: '_initialize', value: function() {
|
|
this.rebootWebworker();
|
|
}}, {key: '_terminate', value: function() {
|
|
if (this._worker != null) {
|
|
this._worker.terminate();
|
|
this._worker = null;
|
|
}
|
|
}}, {key: 'rebootWebworker', value: function() {
|
|
if (this._worker != null) {
|
|
this._worker.terminate();
|
|
this._worker = null;
|
|
}
|
|
this._worker = require(dependencyMap[17]);
|
|
}}, {key: 'updateUsers', value: value_58208}, {key: 'getUserSearchContext', value: value_58209},
|
|
{key: 'requestDebugState', value: function() {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}}]);
|
|
function UserSearchManager(a0) { // fn#58129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:4824, offset: 0x016c081e, size: 653 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_7;
|
|
binding(this, UserSearchManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(UserSearchManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_58107()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {LOGOUT: LOGOUT_58130, POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_58131,
|
|
CONNECTION_OPEN_SUPPLEMENTAL: CONNECTION_OPEN_SUPPLEMENTAL_58132, OVERLAY_INITIALIZE: OVERLAY_INITIALIZE_58133,
|
|
CURRENT_USER_UPDATE: CURRENT_USER_UPDATE_58134, GUILD_CREATE: GUILD_CREATE_58135,
|
|
GUILD_MEMBERS_CHUNK_BATCH: GUILD_MEMBERS_CHUNK_BATCH_58136, GUILD_MEMBER_ADD: GUILD_MEMBER_ADD_58137,
|
|
GUILD_MEMBER_UPDATE: GUILD_MEMBER_UPDATE_58138, RELATIONSHIP_ADD: RELATIONSHIP_ADD_58139,
|
|
RELATIONSHIP_UPDATE: RELATIONSHIP_UPDATE_58140, RELATIONSHIP_REMOVE: RELATIONSHIP_REMOVE_58141,
|
|
CHANNEL_CREATE: CHANNEL_CREATE_58142, CHANNEL_UPDATES: CHANNEL_UPDATES_58143,
|
|
CHANNEL_RECIPIENT_ADD: CHANNEL_RECIPIENT_ADD_58144, PASSIVE_UPDATE_V2: PASSIVE_UPDATE_V2_58145,
|
|
THREAD_LIST_SYNC: THREAD_LIST_SYNC_58146, LOAD_FORUM_POSTS: LOAD_FORUM_POSTS_58147,
|
|
LOAD_MESSAGES_SUCCESS: LOAD_MESSAGES_SUCCESS_58148, SEARCH_MESSAGES_SUCCESS: SEARCH_MESSAGES_SUCCESS_58149,
|
|
LOAD_THREADS_SUCCESS: LOAD_THREADS_SUCCESS, LOAD_ARCHIVED_THREADS_SUCCESS: LOAD_ARCHIVED_THREADS_SUCCESS_58151,
|
|
LOAD_PINNED_MESSAGES_SUCCESS: LOAD_PINNED_MESSAGES_SUCCESS_58152,
|
|
GUILD_SCHEDULED_EVENT_USERS_FETCH_SUCCESS: GUILD_SCHEDULED_EVENT_USERS_FETCH_SUCCESS_58153,
|
|
MESSAGE_CREATE: MESSAGE_CREATE_58154, MESSAGE_UPDATE: MESSAGE_UPDATE_58155};
|
|
value._handleLogout = _handleLogout_58156;
|
|
value._handleConnectionOpen = function() {
|
|
global.setTimeout(_fun58158, 3000);
|
|
};
|
|
value._handleConnectionOpenSupplemental = function({guilds}) {
|
|
global.setTimeout(_fun58161, 3000);
|
|
};
|
|
value._handleOverlayInitialize = _handleOverlayInitialize;
|
|
value._handleCurrentUserUpdate = _handleCurrentUserUpdate;
|
|
value._handleGuildCreate = _handleGuildCreate;
|
|
value._handleGuildMembersChunkBatch = _handleGuildMembersChunkBatch;
|
|
value._handleGuildMemberUpdate = _handleGuildMemberUpdate;
|
|
value._handlePassiveUpdateV2 = _handlePassiveUpdateV2;
|
|
value._handleRelationshipAdd = _handleRelationshipAdd;
|
|
value._handleRelationshipUpdate = _handleRelationshipUpdate;
|
|
value._handleRelationshipRemove = _handleRelationshipRemove;
|
|
value._handleDMCreate = _handleDMCreate;
|
|
value._handleDMUpdates = _handleDMUpdates;
|
|
value._handleRecipientChanges = _handleRecipientChanges;
|
|
value._handleThreadListSync = _handleThreadListSync;
|
|
value._handleLoadForumPosts = _handleLoadForumPosts;
|
|
value._handleLoadMessagesSuccess = _handleLoadMessagesSuccess;
|
|
value._handleLoadPinnedMessagesSuccess = _handleLoadPinnedMessagesSuccess;
|
|
value._handleSearchMessagesSuccess = _handleSearchMessagesSuccess;
|
|
value._handleLoadThreadsSuccess = _handleLoadThreadsSuccess;
|
|
value._handleMessageCreateOrUpdate = _handleMessageCreateOrUpdate;
|
|
value._handleGuildScheduledEventUsersFetchSuccess = function({guildId, guildScheduledEventUsers}) {
|
|
guildScheduledEventUsers.forEach(_fun58204);
|
|
guildId.updateUsers([], 'guild_scheduled_event_users_fetch_success');
|
|
};
|
|
return value;
|
|
function UserSearchManagerLOGOUT() { // fn#58130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5079, owner: UserSearchManager.LOGOUT, offset: 0x016c0aab, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0._handleLogout();
|
|
}
|
|
|
|
function UserSearchManagerPOST_CONNECTION_OPEN() { // fn#58131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5122, owner: UserSearchManager.POST_CONNECTION_OPEN, offset: 0x016c0abe, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0._handleConnectionOpen();
|
|
}
|
|
|
|
function UserSearchManagerCONNECTION_OPEN_SUPPLEMENTAL(a0) { // fn#58132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5181, owner: UserSearchManager.CONNECTION_OPEN_SUPPLEMENTAL, offset: 0x016c0ad1, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleConnectionOpenSupplemental(a0);
|
|
}
|
|
|
|
function UserSearchManagerOVERLAY_INITIALIZE(a0) { // fn#58133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5242, owner: UserSearchManager.OVERLAY_INITIALIZE, offset: 0x016c0ae8, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleOverlayInitialize(a0);
|
|
}
|
|
|
|
function UserSearchManagerCURRENT_USER_UPDATE(a0) { // fn#58134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5295, owner: UserSearchManager.CURRENT_USER_UPDATE, offset: 0x016c0aff, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleCurrentUserUpdate(a0);
|
|
}
|
|
|
|
function UserSearchManagerGUILD_CREATE(a0) { // fn#58135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5341, owner: UserSearchManager.GUILD_CREATE, offset: 0x016c0b16, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleGuildCreate(a0);
|
|
}
|
|
|
|
function UserSearchManagerGUILD_MEMBERS_CHUNK_BATCH(a0) { // fn#58136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5394, owner: UserSearchManager.GUILD_MEMBERS_CHUNK_BATCH, offset: 0x016c0b2d, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleGuildMembersChunkBatch(a0);
|
|
}
|
|
|
|
function UserSearchManagerGUILD_MEMBER_ADD(a0) { // fn#58137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5449, owner: UserSearchManager.GUILD_MEMBER_ADD, offset: 0x016c0b44, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleGuildMemberUpdate(a0);
|
|
}
|
|
|
|
function UserSearchManagerGUILD_MEMBER_UPDATE(a0) { // fn#58138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5502, owner: UserSearchManager.GUILD_MEMBER_UPDATE, offset: 0x016c0b44, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleGuildMemberUpdate(a0);
|
|
}
|
|
|
|
function UserSearchManagerRELATIONSHIP_ADD(a0) { // fn#58139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5552, owner: UserSearchManager.RELATIONSHIP_ADD, offset: 0x016c0b5b, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleRelationshipAdd(a0);
|
|
}
|
|
|
|
function UserSearchManagerRELATIONSHIP_UPDATE(a0) { // fn#58140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5603, owner: UserSearchManager.RELATIONSHIP_UPDATE, offset: 0x016c0b72, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleRelationshipUpdate(a0);
|
|
}
|
|
|
|
function UserSearchManagerRELATIONSHIP_REMOVE(a0) { // fn#58141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5657, owner: UserSearchManager.RELATIONSHIP_REMOVE, offset: 0x016c0b89, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleRelationshipRemove(a0);
|
|
}
|
|
|
|
function UserSearchManagerCHANNEL_CREATE(a0) { // fn#58142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5706, owner: UserSearchManager.CHANNEL_CREATE, offset: 0x016c0ba0, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleDMCreate(a0);
|
|
}
|
|
|
|
function UserSearchManagerCHANNEL_UPDATES(a0) { // fn#58143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5746, owner: UserSearchManager.CHANNEL_UPDATES, offset: 0x016c0bb7, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleDMUpdates(a0);
|
|
}
|
|
|
|
function UserSearchManagerCHANNEL_RECIPIENT_ADD(a0) { // fn#58144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5793, owner: UserSearchManager.CHANNEL_RECIPIENT_ADD, offset: 0x016c0bce, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleRecipientChanges(a0);
|
|
}
|
|
|
|
function UserSearchManagerPASSIVE_UPDATE_V2(a0) { // fn#58145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5843, owner: UserSearchManager.PASSIVE_UPDATE_V2, offset: 0x016c0be5, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handlePassiveUpdateV2(a0);
|
|
}
|
|
|
|
function UserSearchManagerTHREAD_LIST_SYNC(a0) { // fn#58146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5891, owner: UserSearchManager.THREAD_LIST_SYNC, offset: 0x016c0bfc, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleThreadListSync(a0);
|
|
}
|
|
|
|
function UserSearchManagerLOAD_FORUM_POSTS(a0) { // fn#58147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5938, owner: UserSearchManager.LOAD_FORUM_POSTS, offset: 0x016c0c13, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleLoadForumPosts(a0);
|
|
}
|
|
|
|
function UserSearchManagerLOAD_MESSAGES_SUCCESS(a0) { // fn#58148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:5990, owner: UserSearchManager.LOAD_MESSAGES_SUCCESS, offset: 0x016c0c2a, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleLoadMessagesSuccess(a0);
|
|
}
|
|
|
|
function UserSearchManagerSEARCH_MESSAGES_SUCCESS(a0) { // fn#58149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6049, owner: UserSearchManager.SEARCH_MESSAGES_SUCCESS, offset: 0x016c0c41, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleSearchMessagesSuccess(a0);
|
|
}
|
|
|
|
function LOAD_THREADS_SUCCESS(a0) { // fn#58150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6107, owner: UserSearchManager.LOAD_THREADS_SUCCESS, offset: 0x016c0c58, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleLoadThreadsSuccess(a0);
|
|
}
|
|
|
|
function UserSearchManagerLOAD_ARCHIVED_THREADS_SUCCESS(a0) { // fn#58151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6171, owner: UserSearchManager.LOAD_ARCHIVED_THREADS_SUCCESS, offset: 0x016c0c58, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleLoadThreadsSuccess(a0);
|
|
}
|
|
|
|
function UserSearchManagerLOAD_PINNED_MESSAGES_SUCCESS(a0) { // fn#58152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6234, owner: UserSearchManager.LOAD_PINNED_MESSAGES_SUCCESS, offset: 0x016c0c6f, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleLoadPinnedMessagesSuccess(a0);
|
|
}
|
|
|
|
function UserSearchManagerGUILD_SCHEDULED_EVENT_USERS_FETCH_SUCCESS(a0) { // fn#58153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6317, owner: UserSearchManager.GUILD_SCHEDULED_EVENT_USERS_FETCH_SUCCESS, offset: 0x016c0c86, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleGuildScheduledEventUsersFetchSuccess(a0);
|
|
}
|
|
|
|
function UserSearchManagerMESSAGE_CREATE(a0) { // fn#58154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6384, owner: UserSearchManager.MESSAGE_CREATE, offset: 0x016c0c9d, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleMessageCreateOrUpdate(a0);
|
|
}
|
|
|
|
function UserSearchManagerMESSAGE_UPDATE(a0) { // fn#58155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6436, owner: UserSearchManager.MESSAGE_UPDATE, offset: 0x016c0c9d, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0._handleMessageCreateOrUpdate(a0);
|
|
}
|
|
|
|
function UserSearchManager_handleLogout() { // fn#58156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6490, owner: UserSearchManager._handleLogout, offset: 0x016c0cb4, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.rebootWebworker();
|
|
}
|
|
|
|
function UserSearchManager_handleConnectionOpen() { // fn#58157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6540, owner: UserSearchManager._handleConnectionOpen, offset: 0x016c0cc9, size: 31 bytes, params: 1, frame: 13
|
|
global.setTimeout(_fun58158, 3000);
|
|
function _fun58158() { // fn#58158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6557, offset: 0x016c0ce8, size: 375 bytes, params: 1, frame: 38
|
|
var environment;
|
|
var r15;
|
|
var r8;
|
|
var nick;
|
|
var r22;
|
|
var getTransformedUserBinding;
|
|
var value3;
|
|
var transformedUserBinding;
|
|
var object;
|
|
var Object;
|
|
var values;
|
|
var mutableAllGuildsAndMembers;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var property;
|
|
var properties4;
|
|
var properties5;
|
|
var properties6;
|
|
var propertyName3;
|
|
var propertyName4;
|
|
var property2;
|
|
var property3;
|
|
var defaultImport;
|
|
var globalName;
|
|
var binding;
|
|
var updateUsers;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const currentUser = UserStore.getCurrentUser();
|
|
if (currentUser != null) {
|
|
getTransformedUserBinding = getTransformedUser;
|
|
value3 = undefined;
|
|
transformedUserBinding = getTransformedUserBinding(currentUser);
|
|
object = {};
|
|
object[transformedUserBinding.id] = transformedUserBinding;
|
|
Object = global.Object;
|
|
values = Object.values;
|
|
userStoreBinding = UserStore;
|
|
Reflect.apply(values, Object, [userStoreBinding.getUsers()]).forEach(_fun58159);
|
|
mutableAllGuildsAndMembers = GuildMemberStore.getMutableAllGuildsAndMembers();
|
|
for (propertyName in mutableAllGuildsAndMembers) {
|
|
property = mutableAllGuildsAndMembers[propertyName];
|
|
properties4 = Object.keys(property);
|
|
properties5 = 0;
|
|
properties6 = properties4.length;
|
|
if (properties4 === value3) {
|
|
r15 = propertyName2;
|
|
continue;
|
|
}
|
|
r8 = properties5;
|
|
while (true) {
|
|
propertyName3 = properties4[r8];
|
|
propertyName4 = r8 + 1;
|
|
if (propertyName3 === value3) {
|
|
r15 = propertyName2;
|
|
break;
|
|
}
|
|
property2 = object[propertyName3];
|
|
property3 = mutableAllGuildsAndMembers[propertyName][propertyName3];
|
|
if (property3 == null) {
|
|
nick = value3;
|
|
continue;
|
|
}
|
|
nick = property3.nick;
|
|
if (nick != null) {
|
|
r22 = nick;
|
|
continue;
|
|
}
|
|
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
|
globalName = defaultImport.getGlobalName(property2);
|
|
r22 = globalName;
|
|
if (property2 == null) {
|
|
r8 = propertyName4;
|
|
continue;
|
|
}
|
|
setNick(property2, propertyName, r22);
|
|
r8 = propertyName4;
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
binding = env1_0;
|
|
updateUsers = binding.updateUsers;
|
|
Object = global.Object;
|
|
value = Object.values(object);
|
|
Reflect.apply(updateUsers, binding, [value, 'connection_open']);
|
|
}
|
|
function _fun58159(a0) { // fn#58159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6677, offset: 0x016c0e5f, size: 35 bytes, params: 2, frame: 13
|
|
env0_0[a0.id] = getTransformedUser(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _handleConnectionOpenSupplemental({guilds}) { // fn#58160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:6994, owner: UserSearchManager._handleConnectionOpenSupplemental, offset: 0x016c0e82, size: 44 bytes, params: 2, frame: 13
|
|
global.setTimeout(_fun58161, 3000);
|
|
function _fun58161() { // fn#58161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:7021, offset: 0x016c0eae, size: 130 bytes, params: 1, frame: 19
|
|
var environment;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = importDefault(22) /* metro dependency 22 */;
|
|
const flatMap = value.flatMap;
|
|
const guildsBinding = guilds;
|
|
const value3 = Reflect.apply(flatMap, value, [guildsBinding, function(a0) {
|
|
return updateMembersList(a0.members, a0.id);
|
|
}]);
|
|
const value4 = (importDefault(22) /* metro dependency 22 */).flatMap(guildsBinding, function(a0) {
|
|
var env0_0 = a0;
|
|
var activity_instances = a0.activity_instances;
|
|
if (activity_instances != null) {
|
|
activity_instances.forEach(_fun58164);
|
|
}
|
|
return [];
|
|
});
|
|
const binding = env1_0;
|
|
const updateUsers = binding.updateUsers;
|
|
const items2 = [];
|
|
arraySpread(items2, value4, arraySpread(items2, value3, 0, value), value);
|
|
Reflect.apply(updateUsers, binding, [items2, 'connection_open_supplemental']);
|
|
function _fun58163(a0) { // fn#58163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:7113, offset: 0x016c0f4f, size: 46 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
const activity_instances = a0.activity_instances;
|
|
if (activity_instances != null) {
|
|
activity_instances.forEach(function({participants}) {
|
|
participants.forEach(_fun58165);
|
|
});
|
|
}
|
|
return [];
|
|
function _fun58164({participants}) { // fn#58164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:7178, offset: 0x016c0f7d, size: 30 bytes, params: 2, frame: 11
|
|
participants.forEach(_fun58165);
|
|
function _fun58165({member}) { // fn#58165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:7206, offset: 0x016c0f9b, size: 85 bytes, params: 2, frame: 16
|
|
var value;
|
|
var transformedUser;
|
|
var setNickBinding;
|
|
if (member != null) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
transformedUser = getTransformedUser(member.user);
|
|
if (transformedUser != null) {
|
|
setNickBinding = setNick;
|
|
value = environment.__proto__;
|
|
setNickBinding(transformedUser, env1_0.id, member.nick);
|
|
env1_1.push(transformedUser);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _handleOverlayInitialize({users, guildMembers}) { // fn#58166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:7419, owner: UserSearchManager._handleOverlayInitialize, offset: 0x016c0ff0, size: 467 bytes, params: 2, frame: 36
|
|
var r4;
|
|
var r9;
|
|
var r18;
|
|
var r3;
|
|
var value5;
|
|
var set;
|
|
var id;
|
|
var value6;
|
|
var value9;
|
|
var property;
|
|
var defaultImport2;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var property2;
|
|
var value14;
|
|
var value15;
|
|
var nick;
|
|
var value16;
|
|
var setNickBinding;
|
|
var value17;
|
|
var value18;
|
|
const Map = global.Map;
|
|
const map = new Map();
|
|
const value3 = _createForOfIteratorHelperLoose_58104(users);
|
|
const value4 = value3();
|
|
let done = value4.done;
|
|
if (!done) {
|
|
for (r4 = value4; true; r4 = value6) {
|
|
value5 = r4.value;
|
|
set = map.set;
|
|
id = value5.id;
|
|
Reflect.apply(set, map, [id, getTransformedUser(value5)]);
|
|
value6 = value3();
|
|
done = value6.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
_createForOfIteratorHelperLoose_58104Binding = _createForOfIteratorHelperLoose_58104;
|
|
const defaultImport = SnowflakeUtils;
|
|
let keys = defaultImport.keys;
|
|
const value7 = _createForOfIteratorHelperLoose_58104Binding(Reflect.apply(keys, defaultImport, [guildMembers]));
|
|
const value8 = value7();
|
|
done = value8.done;
|
|
if (!done) {
|
|
r9 = value8;
|
|
while (true) {
|
|
value9 = r9.value;
|
|
property = guildMembers[value9];
|
|
if (property != null) {
|
|
_createForOfIteratorHelperLoose_58104Binding = _createForOfIteratorHelperLoose_58104;
|
|
defaultImport2 = defaultImport;
|
|
keys = defaultImport2.keys;
|
|
value10 = _createForOfIteratorHelperLoose_58104Binding(Reflect.apply(keys, defaultImport2, [property]));
|
|
value11 = value10();
|
|
done = value11.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r18 = value11;
|
|
while (true) {
|
|
value12 = r18.value;
|
|
value13 = map.get(value12);
|
|
property2 = property[value12];
|
|
value14 = value13 != null;
|
|
if (value14) {
|
|
value15 = property2 != null;
|
|
r3 = value15;
|
|
} else {
|
|
r3 = value14;
|
|
}
|
|
if (!r3) {
|
|
continue;
|
|
}
|
|
nick = property2.nick;
|
|
value16 = nick != null;
|
|
r3 = value16;
|
|
if (!r3) {
|
|
continue;
|
|
}
|
|
setNickBinding = setNick;
|
|
nick = property2.nick;
|
|
setNickBinding(value13, value9, nick);
|
|
map.set(value12, value13);
|
|
value17 = value10();
|
|
done = value17.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r18 = value17;
|
|
continue;
|
|
}
|
|
}
|
|
value18 = value7();
|
|
done = value18.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r9 = value18;
|
|
continue;
|
|
}
|
|
}
|
|
const binding = env0_0;
|
|
const updateUsers = binding.updateUsers;
|
|
const Array = global.Array;
|
|
Reflect.apply(updateUsers, binding, [Array.from(map.values()), 'overlay_initialize']);
|
|
map.clear();
|
|
}
|
|
|
|
function _handleCurrentUserUpdate({user}) { // fn#58167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:7952, owner: UserSearchManager._handleCurrentUserUpdate, offset: 0x016c11c3, size: 63 bytes, params: 2, frame: 14
|
|
var binding;
|
|
let value = environment.__proto__.__proto__;
|
|
value = getTransformedUser(user);
|
|
if (value != null) {
|
|
binding = env0_0;
|
|
binding.updateUsers([value], 'current_user_update');
|
|
}
|
|
}
|
|
|
|
function _handleGuildCreate({guild}) { // fn#58168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8065, owner: UserSearchManager._handleGuildCreate, offset: 0x016c1202, size: 61 bytes, params: 2, frame: 15
|
|
const members = guild.members;
|
|
const binding = env0_0;
|
|
const updateUsers = binding.updateUsers;
|
|
const value = environment.__proto__.__proto__;
|
|
Reflect.apply(updateUsers, binding, [updateMembersList(members, guild.id), 'guild_create']);
|
|
}
|
|
|
|
function _handleGuildMembersChunkBatch({chunks}) { // fn#58169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8184, owner: UserSearchManager._handleGuildMembersChunkBatch, offset: 0x016c123f, size: 138 bytes, params: 2, frame: 20
|
|
var r2;
|
|
var value4;
|
|
var push;
|
|
var updateMembersListBinding;
|
|
var members;
|
|
var guildId;
|
|
var value5;
|
|
var items2;
|
|
var value6;
|
|
const items3 = [];
|
|
const value2 = _createForOfIteratorHelperLoose_58104(chunks);
|
|
const value3 = value2();
|
|
let done = value3.done;
|
|
if (!done) {
|
|
for (r2 = value3; true; r2 = value6) {
|
|
value4 = r2.value;
|
|
push = items3.push;
|
|
updateMembersListBinding = updateMembersList;
|
|
members = value4.members;
|
|
guildId = value4.guildId;
|
|
value5 = updateMembersListBinding(members, guildId);
|
|
items2 = [];
|
|
arraySpread(items2, value5, 0, updateMembersListBinding);
|
|
apply(push, items2, items3, updateMembersListBinding);
|
|
value6 = value2();
|
|
done = value6.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
env0_0.updateUsers(items3, 'guild_members_chunk_batch');
|
|
}
|
|
|
|
function _handleGuildMemberUpdate({guildId, user, nick}) { // fn#58170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8404, owner: UserSearchManager._handleGuildMemberUpdate, offset: 0x016c12c9, size: 85 bytes, params: 2, frame: 16
|
|
var binding;
|
|
const transformedUser = getTransformedUser(user);
|
|
if (transformedUser != null) {
|
|
setNick(transformedUser, guildId, nick);
|
|
binding = env0_0;
|
|
binding.updateUsers([transformedUser], 'guild_member_update');
|
|
}
|
|
}
|
|
|
|
function _handlePassiveUpdateV2({members, guildId}) { // fn#58171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8555, owner: UserSearchManager._handlePassiveUpdateV2, offset: 0x016c131e, size: 56 bytes, params: 2, frame: 15
|
|
const binding = env0_0;
|
|
const updateUsers = binding.updateUsers;
|
|
const value = environment.__proto__.__proto__;
|
|
Reflect.apply(updateUsers, binding, [updateMembersList(members, guildId), 'passive_update_v2']);
|
|
}
|
|
|
|
function _handleRelationshipAdd({relationship}) { // fn#58172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8659, owner: UserSearchManager._handleRelationshipAdd, offset: 0x016c1356, size: 63 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
const getTransformedUserBinding = getTransformedUser;
|
|
const user = relationship.user;
|
|
value = getTransformedUserBinding(user);
|
|
const binding = env0_0;
|
|
binding.updateUsers([value], 'relationship_add');
|
|
}
|
|
|
|
function _handleRelationshipUpdate({relationship}) { // fn#58173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8776, owner: UserSearchManager._handleRelationshipUpdate, offset: 0x016c1395, size: 78 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
const getTransformedUserBinding = getTransformedUser;
|
|
value = UserStore.getUser(relationship.id);
|
|
value = getTransformedUserBinding(value);
|
|
const binding = env0_0;
|
|
binding.updateUsers([value], 'relationship_update');
|
|
}
|
|
|
|
function _handleRelationshipRemove({relationship}) { // fn#58174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:8905, owner: UserSearchManager._handleRelationshipRemove, offset: 0x016c13e3, size: 78 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
const getTransformedUserBinding = getTransformedUser;
|
|
value = UserStore.getUser(relationship.id);
|
|
value = getTransformedUserBinding(value);
|
|
const binding = env0_0;
|
|
binding.updateUsers([value], 'relationship_remove');
|
|
}
|
|
|
|
function _handleDMCreate({channel}) { // fn#58175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9024, owner: UserSearchManager._handleDMCreate, offset: 0x016c1431, size: 121 bytes, params: 2, frame: 16
|
|
var getTransformedUserBinding;
|
|
var userStoreBinding;
|
|
var transformedUserBinding;
|
|
const id = channel.id;
|
|
const dMUpdates = getDMUpdates(ChannelStore.getChannel(id));
|
|
if (dMUpdates.length !== 0) {
|
|
getTransformedUserBinding = getTransformedUser;
|
|
userStoreBinding = UserStore;
|
|
transformedUserBinding = getTransformedUserBinding(userStoreBinding.getCurrentUser());
|
|
setNick(transformedUserBinding, id);
|
|
dMUpdates.push(transformedUserBinding);
|
|
env0_0.updateUsers(dMUpdates, 'dm_create');
|
|
}
|
|
}
|
|
|
|
function _handleDMUpdates({channels}) { // fn#58176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9216, owner: UserSearchManager._handleDMUpdates, offset: 0x016c14aa, size: 168 bytes, params: 2, frame: 21
|
|
var r2;
|
|
var value5;
|
|
var getDMUpdatesBinding;
|
|
var channelStoreBinding;
|
|
var getChannel;
|
|
var id;
|
|
var dMUpdatesBinding;
|
|
var length;
|
|
var getTransformedUserBinding;
|
|
var userStoreBinding;
|
|
var getCurrentUser;
|
|
var transformedUserBinding;
|
|
var setNickBinding;
|
|
var binding;
|
|
var value8;
|
|
const value2 = _createForOfIteratorHelperLoose_58104(channels);
|
|
const value3 = value2();
|
|
let done = value3.done;
|
|
if (!done) {
|
|
r2 = value3;
|
|
while (true) {
|
|
value5 = r2.value;
|
|
getDMUpdatesBinding = getDMUpdates;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = value5.id;
|
|
dMUpdatesBinding = getDMUpdatesBinding(Reflect.apply(getChannel, channelStoreBinding, [id]));
|
|
length = dMUpdatesBinding.length;
|
|
if (length !== 0) {
|
|
getTransformedUserBinding = getTransformedUser;
|
|
userStoreBinding = UserStore;
|
|
getCurrentUser = userStoreBinding.getCurrentUser;
|
|
transformedUserBinding = getTransformedUserBinding(Reflect.apply(getCurrentUser, userStoreBinding, []));
|
|
setNickBinding = setNick;
|
|
id = value5.id;
|
|
setNickBinding(transformedUserBinding, id);
|
|
dMUpdatesBinding.push(transformedUserBinding);
|
|
binding = env0_0;
|
|
binding.updateUsers(dMUpdatesBinding, 'dm_updates');
|
|
}
|
|
value8 = value2();
|
|
done = value8.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r2 = value8;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _handleRecipientChanges(a0) { // fn#58177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9492, owner: UserSearchManager._handleRecipientChanges, offset: 0x016c1552, size: 83 bytes, params: 2, frame: 14
|
|
var value;
|
|
var transformedUser;
|
|
var binding;
|
|
const channelId = a0.channelId;
|
|
const user = a0.user;
|
|
if (a0.isMember) {
|
|
value = environment.__proto__.__proto__;
|
|
transformedUser = getTransformedUser(user);
|
|
setNick(transformedUser, channelId);
|
|
binding = env0_0;
|
|
binding.updateUsers([transformedUser], 'recipient_changes');
|
|
}
|
|
}
|
|
|
|
function _handleThreadListSync({guildId, mostRecentMessages}) { // fn#58178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9640, owner: UserSearchManager._handleThreadListSync, offset: 0x016c15a5, size: 82 bytes, params: 2, frame: 14
|
|
if (mostRecentMessages != null) {
|
|
mostRecentMessages.forEach(_fun58179);
|
|
guildId.updateUsers([], 'thread_list_sync');
|
|
}
|
|
function _fun58179(a0) { // fn#58179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9709, offset: 0x016c15f7, size: 54 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
getUsersFromMessage({message: a0, nicknameContextId: guildId}).forEach(_fun58180);
|
|
function _fun58180(a0) { // fn#58180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9775, offset: 0x016c162d, size: 22 bytes, params: 2, frame: 11
|
|
return env1_1.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _handleLoadForumPosts({guildId, threads}) { // fn#58181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9855, owner: UserSearchManager._handleLoadForumPosts, offset: 0x016c1643, size: 90 bytes, params: 2, frame: 14
|
|
const Object = global.Object;
|
|
Object.values(threads).forEach(_fun58182);
|
|
guildId.updateUsers([], 'load_forum_posts');
|
|
function _fun58182({first_message, most_recent_message, owner}) { // fn#58182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:9916, offset: 0x016c169d, size: 180 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var value;
|
|
if (first_message != null) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = getUsersFromMessage({message: first_message, nicknameContextId: guildId});
|
|
value.forEach(_fun58183);
|
|
}
|
|
if (most_recent_message != null) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = getUsersFromMessage({message: most_recent_message, nicknameContextId: guildId});
|
|
value.forEach(_fun58184);
|
|
}
|
|
if (owner != null) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = updateMembersList([owner], guildId);
|
|
value.forEach(_fun58185);
|
|
}
|
|
function _fun58183(a0) { // fn#58183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10039, offset: 0x016c162d, size: 22 bytes, params: 2, frame: 11
|
|
return env1_1.push(a0);
|
|
}
|
|
|
|
function _fun58184(a0) { // fn#58184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10125, offset: 0x016c162d, size: 22 bytes, params: 2, frame: 11
|
|
return env1_1.push(a0);
|
|
}
|
|
|
|
function _fun58185(a0) { // fn#58185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10183, offset: 0x016c162d, size: 22 bytes, params: 2, frame: 11
|
|
return env1_1.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _handleLoadMessagesSuccess({messages}) { // fn#58186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10267, owner: UserSearchManager._handleLoadMessagesSuccess, offset: 0x016c1751, size: 56 bytes, params: 2, frame: 13
|
|
env0_0.updateUsers(messages.flatMap(function(a0) {
|
|
return getUsersFromMessage({message: a0});
|
|
}), 'load_messages_success');
|
|
}
|
|
|
|
function _handleLoadPinnedMessagesSuccess({pins}) { // fn#58188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10416, owner: UserSearchManager._handleLoadPinnedMessagesSuccess, offset: 0x016c17a2, size: 63 bytes, params: 2, frame: 13
|
|
const items2 = [];
|
|
const items3 = items2;
|
|
pins.forEach(_fun58189);
|
|
items3.updateUsers(items2, 'load_pinned_messages_success');
|
|
function _fun58189({message}) { // fn#58189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10449, offset: 0x016c17e1, size: 47 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
getUsersFromMessage({message: message}).forEach(_fun58190);
|
|
function _fun58190(a0) { // fn#58190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10507, offset: 0x016c1810, size: 22 bytes, params: 2, frame: 11
|
|
return env1_0.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _handleSearchMessagesSuccess({data}) { // fn#58191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10605, owner: UserSearchManager._handleSearchMessagesSuccess, offset: 0x016c1826, size: 62 bytes, params: 2, frame: 13
|
|
const items2 = [];
|
|
const items3 = items2;
|
|
data.forEach(function({messages}) {
|
|
messages.forEach(_fun58193);
|
|
});
|
|
items3.updateUsers(items2, 'search_messages_success');
|
|
function _fun58192({messages}) { // fn#58192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10638, offset: 0x016c1864, size: 30 bytes, params: 2, frame: 11
|
|
messages.forEach(function(a0) {
|
|
a0.forEach(_fun58194);
|
|
});
|
|
function _fun58193(a0) { // fn#58193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10666, offset: 0x016c1882, size: 24 bytes, params: 2, frame: 11
|
|
a0.forEach(_fun58194);
|
|
function _fun58194(a0) { // fn#58194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10681, offset: 0x016c189a, size: 42 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
getUsersFromMessage({message: a0}).forEach(_fun58195);
|
|
function _fun58195(a0) { // fn#58195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10727, offset: 0x016c18c4, size: 22 bytes, params: 2, frame: 11
|
|
return env3_0.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _handleLoadThreadsSuccess({guildId, firstMessages, mostRecentMessages, owners}) { // fn#58196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10823, owner: UserSearchManager._handleLoadThreadsSuccess, offset: 0x016c18da, size: 143 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var value;
|
|
const guildId2 = guildId;
|
|
if (firstMessages != null) {
|
|
firstMessages.forEach(_fun58197);
|
|
}
|
|
if (mostRecentMessages != null) {
|
|
mostRecentMessages.forEach(_fun58199);
|
|
}
|
|
if (owners != null) {
|
|
value = environment.__proto__.__proto__;
|
|
value = updateMembersList(owners, guildId);
|
|
value.forEach(_fun58201);
|
|
}
|
|
guildId2.updateUsers([], 'load_threads_success');
|
|
function _fun58197(a0) { // fn#58197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10915, offset: 0x016c1969, size: 54 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
getUsersFromMessage({message: a0, nicknameContextId: guildId}).forEach(_fun58198);
|
|
function _fun58198(a0) { // fn#58198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:10981, offset: 0x016c162d, size: 22 bytes, params: 2, frame: 11
|
|
return env1_1.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun58199(a0) { // fn#58199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11019, offset: 0x016c199f, size: 54 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
getUsersFromMessage({message: a0, nicknameContextId: guildId}).forEach(_fun58200);
|
|
function _fun58200(a0) { // fn#58200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11085, offset: 0x016c162d, size: 22 bytes, params: 2, frame: 11
|
|
return env1_1.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun58201(a0) { // fn#58201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11145, offset: 0x016c19d5, size: 22 bytes, params: 2, frame: 11
|
|
return env0_1.push(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _handleMessageCreateOrUpdate({message}) { // fn#58202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11232, owner: UserSearchManager._handleMessageCreateOrUpdate, offset: 0x016c19eb, size: 55 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__.__proto__;
|
|
env0_0.updateUsers(getUsersFromMessage({message: message}), 'message_create_or_update');
|
|
}
|
|
|
|
function _handleGuildScheduledEventUsersFetchSuccess({guildId, guildScheduledEventUsers}) { // fn#58203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11374, owner: UserSearchManager._handleGuildScheduledEventUsersFetchSuccess, offset: 0x016c1a22, size: 72 bytes, params: 2, frame: 13
|
|
guildScheduledEventUsers.forEach(_fun58204);
|
|
guildId.updateUsers([], 'guild_scheduled_event_users_fetch_success');
|
|
function _fun58204({user, member}) { // fn#58204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11437, offset: 0x016c1a6a, size: 83 bytes, params: 2, frame: 18
|
|
const transformedUser = getTransformedUser(user);
|
|
if (transformedUser != null) {
|
|
setNick(transformedUser, guildId, member?.nick);
|
|
env0_1.push(transformedUser);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_58208(a0, a1) { // fn#58208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:11979, offset: 0x016c1b3d, size: 393 bytes, params: 3, frame: 25
|
|
var r1;
|
|
var id;
|
|
var username;
|
|
var isBot;
|
|
var isFriend;
|
|
var isProvisional;
|
|
var globalName;
|
|
var value;
|
|
var _createForOfIteratorHelperLoose_58104Binding;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var done;
|
|
var value6;
|
|
var defaultImport;
|
|
var addBreadcrumb;
|
|
var length;
|
|
var value7;
|
|
const _worker = this._worker;
|
|
if (_worker != null) {
|
|
value = environment.__proto__;
|
|
_createForOfIteratorHelperLoose_58104Binding = _createForOfIteratorHelperLoose_58104;
|
|
value2 = undefined;
|
|
value3 = a0.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
|
value4 = _createForOfIteratorHelperLoose_58104Binding(value3);
|
|
value5 = value4();
|
|
done = value5.done;
|
|
if (!done) {
|
|
r1 = value5;
|
|
while (true) {
|
|
value6 = r1.value;
|
|
id = value6 == null ? value2 : value6.id;
|
|
if (id != null) {
|
|
continue;
|
|
}
|
|
defaultImport = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
|
|
addBreadcrumb = defaultImport.addBreadcrumb;
|
|
if (value6 == null) {
|
|
id = value2;
|
|
continue;
|
|
}
|
|
id = value6.id;
|
|
if (value6 == null) {
|
|
username = value2;
|
|
continue;
|
|
}
|
|
username = value6.username;
|
|
if (value6 == null) {
|
|
isBot = value2;
|
|
continue;
|
|
}
|
|
isBot = value6.isBot;
|
|
if (value6 == null) {
|
|
isFriend = value2;
|
|
continue;
|
|
}
|
|
isFriend = value6.isFriend;
|
|
if (value6 == null) {
|
|
isProvisional = value2;
|
|
continue;
|
|
}
|
|
isProvisional = value6.isProvisional;
|
|
if (value6 == null) {
|
|
globalName = value2;
|
|
continue;
|
|
}
|
|
globalName = value6.globalName;
|
|
length = value3.length;
|
|
Reflect.apply(addBreadcrumb, defaultImport, [{'category': 'debug', 'message': 'User missing id',
|
|
data: {action: a1,
|
|
userFields: {userIsNull: value6 == null, idIsNull: id == null, usernameIsNull: username == null,
|
|
isBot: isBot,
|
|
isFriend: isFriend, isProvisional: isProvisional, globalNameIsNull: globalName == null,
|
|
usersArrayLength: length}}}]);
|
|
value7 = value4();
|
|
done = value7.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r1 = value7;
|
|
continue;
|
|
}
|
|
}
|
|
_worker.postMessage({type: env1_16.UPDATE_USERS, payload: value3});
|
|
}
|
|
}
|
|
|
|
function value_58209(a0) { // fn#58209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7416:12638, offset: 0x016c1cc6, size: 111 bytes, params: 2, frame: 15
|
|
let value = a1;
|
|
const r4 = value !== undefined ? value : 10;
|
|
this.initialize();
|
|
const _worker = this._worker;
|
|
if (_worker == null) {
|
|
throw new global.Error('SearchContextManager: No webworker initialized');
|
|
}
|
|
value = environment.__proto__;
|
|
const binding = env1_17;
|
|
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(_worker, a0);
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun58103, 7238, [15, 17, 18, 6, 7, 1383, 1885, 1379, 1945, 3793, 1878, 661, 3995, 1391, 491, 22, 21,
|
|
7239, 1360, 1216, 4860,
|
|
2]) /* metro module 7238, dependencies: [15, 17, 18, 6, 7, 1383, 1885, 1379, 1945, 3793, 1878, 661, 3995, 1391, 491, 22, 21, 7239, 1360, 1216, 4860, 2] */;
|