Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,20 @@
|
||||
/* Metro module 16260; source: modules/headless_tasks/HeadlessTaskUtils.tsx; dependencies: [661, 587, 2] */
|
||||
function _fun125702(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16468:6, offset: 0x025e1701, size: 124 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).TOKEN_KEY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/HeadlessTaskUtils.tsx');
|
||||
exports.default = {awaitStorage: function(a0) {
|
||||
var env0_0 = a0;
|
||||
var Storage = require(dependencyMap[1]).Storage;
|
||||
Storage.asyncGet(TOKEN_KEY, _fun125704);
|
||||
}};
|
||||
}
|
||||
|
||||
function awaitStorage(a0) { // fn#125703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16468:119, offset: 0x025e177d, size: 65 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
Storage.asyncGet(TOKEN_KEY, _fun125704);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 16257; source: modules/headless_tasks/android/BackgroundSync.tsx; dependencies: [4257, 1226, 7030, 3, 1926, 15670, 2] */
|
||||
function _fun125640(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16465:6, offset: 0x025dfaea, size: 158 bytes, params: 8, frame: 15
|
||||
const env0_0 = require;
|
||||
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('BackgroundSync');
|
||||
module.exports = exports_125641;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/BackgroundSync.tsx');
|
||||
}
|
||||
|
||||
function exports_125641(a0) { // fn#125641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16465:120, offset: 0x025dfb88, size: 173 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var defaultImport;
|
||||
const env0_0 = a0;
|
||||
if (AppStateStore.getState() === 'active') {
|
||||
r0 = global.Promise.resolve();
|
||||
} else {
|
||||
if (!(GatewayConnectionStore.isConnected() || GatewayConnectionStore.isTryingToConnect())) {
|
||||
defaultImport = importDefault(1926) /* metro dependency 1926: DatabaseManager */;
|
||||
defaultImport.carefullyOpenDatabase(AuthenticationStore.getId());
|
||||
}
|
||||
r0 = new global.Promise(_fun125642);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun125642(a0) { // fn#125642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16465:260, offset: 0x025dfc35, size: 82 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
env1_6.log('Executing BackgroundSync with ', env0_0);
|
||||
value = require(15670) /* metro dependency 15670: BackgroundSync */;
|
||||
value = value.backgroundSync({});
|
||||
value.then(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Metro module 16266; source: modules/headless_tasks/android/DirectReply.tsx; dependencies: [5, 27, 4503, 3, 16260, 7067, 2] */
|
||||
function _fun125724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16474:6, offset: 0x025e1ea4, size: 168 bytes, params: 8, frame: 15
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const env0_4 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('DirectReply');
|
||||
module.exports = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125726);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/DirectReply.tsx');
|
||||
}
|
||||
|
||||
function exports_125725(a0) { // fn#125725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16474:151, offset: 0x025e1f4c, size: 46 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125726);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125726(a0) { // fn#125726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16474:167, offset: 0x025e1f7a, size: 110 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
env1_5.log('Executing DirectReply');
|
||||
const PushNotificationAndroid = NativeModules.PushNotificationAndroid;
|
||||
PushNotificationAndroid.markNotificationAsDirectReply(env0_0.channelId);
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125727);
|
||||
}
|
||||
|
||||
function _fun125727() { // fn#125727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16474:293, offset: 0x025e1fe8, size: 60 bytes, params: 1, frame: 12
|
||||
env2_5.log('Storage loaded');
|
||||
(function(a0) {
|
||||
return _sendMessage_125728.apply(this, arguments);
|
||||
})(env1_0);
|
||||
}
|
||||
|
||||
function _sendMessage_125728() { // fn#125728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16474:298, offset: 0x025e2024, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return env3_2(_fun125730).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun125730(a0) { // fn#125730, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16474:345, offset: 0x025e2064, size: 260 bytes, params: 2, frame: 22
|
||||
var PushNotificationAndroid;
|
||||
var handleDirectReplySuccess;
|
||||
var JSON;
|
||||
var stringify;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
var binding = env5_0;
|
||||
var value3 = binding(env5_1[5]);
|
||||
var sendMessage = value3.sendMessage;
|
||||
var channelId = a0.channelId;
|
||||
var object2 = {};
|
||||
object2.content = a0.channelReplyText;
|
||||
object2.tts = false;
|
||||
object2.invalidEmojis = [];
|
||||
object2.validNonShortcutEmojis = [];
|
||||
var PUSH_NOTIFICATION = env5_4.PUSH_NOTIFICATION;
|
||||
yield Reflect.apply(sendMessage, value3, [channelId, object2, false, {eagerDispatch: false,
|
||||
location: PUSH_NOTIFICATION}]);
|
||||
var value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
binding = env5_5;
|
||||
binding.log('Sent message, ok:', value4.ok);
|
||||
if (value4.ok) {
|
||||
PushNotificationAndroid = env5_3.PushNotificationAndroid;
|
||||
handleDirectReplySuccess = PushNotificationAndroid.handleDirectReplySuccess;
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value4.body, false);
|
||||
copyDataProperties(object2, a0, false);
|
||||
Reflect.apply(handleDirectReplySuccess, PushNotificationAndroid, [Reflect.apply(stringify, JSON,
|
||||
[object2])]);
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
env3_0(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 16259; source: modules/headless_tasks/android/Disconnect.tsx; dependencies: [1379, 16260, 9228, 2] */
|
||||
function _fun125698(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16467:6, offset: 0x025e15f1, size: 86 bytes, params: 8, frame: 14
|
||||
const env0_0 = require;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
module.exports = function({channelId}) {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125700);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/Disconnect.tsx');
|
||||
}
|
||||
|
||||
function exports_125699({channelId}) { // fn#125699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16467:67, offset: 0x025e1647, size: 51 bytes, params: 2, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125700);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125700(a0) { // fn#125700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16467:97, offset: 0x025e167a, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125701);
|
||||
}
|
||||
|
||||
function _fun125701() { // fn#125701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16467:123, offset: 0x025e16b0, size: 81 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
if (channel != null) {
|
||||
(require(9228) /* metro dependency 9228: CallsUtils */).handleDisconnect(channel);
|
||||
}
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 16265; source: modules/headless_tasks/android/DismissCallAction.tsx; dependencies: [661, 16260, 683, 4863, 6789, 8916, 2] */
|
||||
function _fun125720(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16473:6, offset: 0x025e1cbc, size: 92 bytes, params: 8, frame: 13
|
||||
let env0_0 = require;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
module.exports = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125722);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/DismissCallAction.tsx');
|
||||
}
|
||||
|
||||
function exports_125721(a0) { // fn#125721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16473:82, offset: 0x025e1d18, size: 46 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125722);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125722(a0) { // fn#125722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16473:98, offset: 0x025e1d46, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125723);
|
||||
}
|
||||
|
||||
function _fun125723() { // fn#125723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16473:124, offset: 0x025e1d7c, size: 296 bytes, params: 1, frame: 20
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var CALLKIT_CLICKED;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
let value = environment.__proto__;
|
||||
if (env1_0.isFullscreenCallUI) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
CALLKIT_CLICKED = AnalyticEvents.CALLKIT_CLICKED;
|
||||
object2 = {action_type: 'decline'};
|
||||
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, moduleValue.collectChannelAnalyticsMetadataFromId(env1_0.channelId), undefined);
|
||||
Reflect.apply(track, defaultImport, [CALLKIT_CLICKED, object2]);
|
||||
}
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
const RING_CALL_DECLINED = AnalyticEvents.RING_CALL_DECLINED;
|
||||
object2 = {};
|
||||
const PUSH_NOTIFICATION = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).PUSH_NOTIFICATION;
|
||||
object2.location = PUSH_NOTIFICATION;
|
||||
const binding = env1_0;
|
||||
object2.guild_id = binding.guildId;
|
||||
const userId = binding.userId;
|
||||
object2.ringer_user_id = userId;
|
||||
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object2, value.collectChannelAnalyticsMetadataFromId(binding.channelId), value);
|
||||
Reflect.apply(track, defaultImport2, [RING_CALL_DECLINED, object2]);
|
||||
value = importDefault(8916) /* metro dependency 8916: CallActionCreators */;
|
||||
value.stopRinging(binding.channelId);
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 16268; source: modules/headless_tasks/android/GenerateInvite.tsx; dependencies: [27, 16260, 8879, 7147, 2] */
|
||||
function _fun125736(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16476:6, offset: 0x025e2300, size: 88 bytes, params: 8, frame: 13
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
module.exports = function({channelId}) {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125738);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/GenerateInvite.tsx');
|
||||
}
|
||||
|
||||
function exports_125737({channelId}) { // fn#125737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16476:81, offset: 0x025e2358, size: 51 bytes, params: 2, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125738);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125738(a0) { // fn#125738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16476:111, offset: 0x025e238b, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125739);
|
||||
}
|
||||
|
||||
function _fun125739() { // fn#125739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16476:137, offset: 0x025e23c1, size: 74 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = Reflect.apply((importDefault(8879) /* metro dependency 8879: InstantInviteActionCreators */).createInvite,
|
||||
value, [channelId, {}, 'Mobile Voice Overlay']);
|
||||
value.then(_fun125740);
|
||||
}
|
||||
|
||||
function _fun125740({code}) { // fn#125740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16476:198, offset: 0x025e240b, size: 77 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const RNCClipboard = NativeModules.RNCClipboard;
|
||||
RNCClipboard.setString((importDefault(7147) /* metro dependency 7147: getInviteURL */)(code));
|
||||
value = environment.__proto__;
|
||||
env1_0(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 16261; source: modules/headless_tasks/android/MarkAsRead.tsx; dependencies: [661, 5097, 2] */
|
||||
function _fun125705(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16469:6, offset: 0x025e17be, size: 95 bytes, params: 8, frame: 14
|
||||
let env0_0 = require;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_2 = constantsModule.AnalyticsObjectTypes;
|
||||
const env0_3 = constantsModule.AnalyticsObjects;
|
||||
module.exports = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125707);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/MarkAsRead.tsx');
|
||||
}
|
||||
|
||||
function exports_125706(a0) { // fn#125706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16469:113, offset: 0x025e181d, size: 46 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125707);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125707(a0) { // fn#125707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16469:129, offset: 0x025e184b, size: 106 bytes, params: 2, frame: 20
|
||||
const readStateActionCreatorsModule = require(5097) /* metro dependency 5097: ReadStateActionCreators */;
|
||||
const ack = readStateActionCreatorsModule.ack;
|
||||
const binding = env0_0;
|
||||
const channelId = binding.channelId;
|
||||
const MARK_CHANNEL_AS_READ_FROM_NOTIFICATION = AnalyticsObjects.MARK_CHANNEL_AS_READ_FROM_NOTIFICATION;
|
||||
const ACK_MANUAL = AnalyticsObjectTypes.ACK_MANUAL;
|
||||
Reflect.apply(ack, readStateActionCreatorsModule, [channelId, {object: MARK_CHANNEL_AS_READ_FROM_NOTIFICATION,
|
||||
objectType: ACK_MANUAL}, true, true, binding.messageId]);
|
||||
a0(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Metro module 16262; source: modules/headless_tasks/android/MuteAction.tsx; dependencies: [670, 16260, 3738, 6613, 6610, 2] */
|
||||
function _fun125708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:6, offset: 0x025e18b5, size: 92 bytes, params: 8, frame: 13
|
||||
let env0_0 = require;
|
||||
const env0_3 = (require(670) /* metro dependency 670: UserSettingsConstants */).MuteUntilSeconds;
|
||||
module.exports = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125710);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/MuteAction.tsx');
|
||||
}
|
||||
|
||||
function exports_125709(a0) { // fn#125709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:84, offset: 0x025e1911, size: 46 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125710);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125710(a0) { // fn#125710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:100, offset: 0x025e193f, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125711);
|
||||
}
|
||||
|
||||
function _fun125711() { // fn#125711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16470:126, offset: 0x025e1975, size: 241 bytes, params: 1, frame: 23
|
||||
var r10;
|
||||
var value3;
|
||||
var value4;
|
||||
var add;
|
||||
let muteTime = env1_0.muteTime;
|
||||
const value2 = null;
|
||||
if (muteTime === -1) {
|
||||
r10 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
value4 = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
add = value4.add;
|
||||
muteTime = env1_0.muteTime;
|
||||
r10 = Reflect.apply(add, value4, [value2 != muteTime ? muteTime : MuteUntilSeconds.HOURS_1,
|
||||
'second']).toISOString();
|
||||
}
|
||||
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
|
||||
const {guildId, channelId} = env1_0;
|
||||
const object2 = {muted: true};
|
||||
const HOURS_1 = MuteUntilSeconds.HOURS_1;
|
||||
object2.mute_config = {selected_time_window: HOURS_1, end_time: r10};
|
||||
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
|
||||
const Muted = NotificationLabels.Muted;
|
||||
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guildId, channelId, object2, Muted]);
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 16267; source: modules/headless_tasks/android/SelectVoiceChannel.tsx; dependencies: [1379, 4294, 16260, 4796, 7709, 4601, 2] */
|
||||
function _fun125732(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16475:6, offset: 0x025e2168, size: 102 bytes, params: 8, frame: 14
|
||||
const env0_0 = require;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
module.exports = function({channelId, connectToVoice}) {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125734);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/SelectVoiceChannel.tsx');
|
||||
}
|
||||
|
||||
function exports_125733({channelId, connectToVoice}) { // fn#125733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16475:77, offset: 0x025e21ce, size: 63 bytes, params: 2, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125734);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125734(a0) { // fn#125734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16475:124, offset: 0x025e220d, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125735);
|
||||
}
|
||||
|
||||
function _fun125735() { // fn#125735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16475:150, offset: 0x025e2243, size: 189 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var moduleValue;
|
||||
let value = environment.__proto__;
|
||||
if (connectToVoice) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */;
|
||||
defaultImport.selectVoiceChannel(channelId);
|
||||
}
|
||||
if (RTCConnectionStore.getChannelId() === channelId) {
|
||||
value = ChannelStore.getChannel(channelId);
|
||||
if (value != null) {
|
||||
(require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).navigateToVoiceChannel(value);
|
||||
}
|
||||
} else {
|
||||
moduleValue = require(4601) /* metro dependency 4601: transitionToChannel */;
|
||||
moduleValue.transitionToChannel(channelId);
|
||||
}
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,37 @@
|
||||
/* Metro module 16263; source: modules/headless_tasks/android/ToggleDeafen.tsx; dependencies: [1379, 16260, 10845, 10834, 2] */
|
||||
function _fun125712(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16471:6, offset: 0x025e1a66, size: 86 bytes, params: 8, frame: 14
|
||||
const env0_0 = require;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
module.exports = function({channelId}) {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125714);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/ToggleDeafen.tsx');
|
||||
}
|
||||
|
||||
function exports_125713({channelId}) { // fn#125713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16471:67, offset: 0x025e1abc, size: 51 bytes, params: 2, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125714);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125714(a0) { // fn#125714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16471:97, offset: 0x025e1aef, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125715);
|
||||
}
|
||||
|
||||
function _fun125715() { // fn#125715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16471:123, offset: 0x025e1b25, size: 105 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
value = require(10845) /* metro dependency 10845: useDeafStates */;
|
||||
value = value.getDeafStates(channel);
|
||||
const voiceActionUtilsModule = require(10834) /* metro dependency 10834: VoiceActionUtils */;
|
||||
voiceActionUtilsModule.createDeafHandler(value).onPress();
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 16264; source: modules/headless_tasks/android/ToggleSelfMute.tsx; dependencies: [1379, 16260, 6952, 10834, 2] */
|
||||
function _fun125716(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:6, offset: 0x025e1b8e, size: 86 bytes, params: 8, frame: 14
|
||||
const env0_0 = require;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
module.exports = function({channelId}) {
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun125718);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/headless_tasks/android/ToggleSelfMute.tsx');
|
||||
}
|
||||
|
||||
function exports_125717({channelId}) { // fn#125717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:67, offset: 0x025e1be4, size: 51 bytes, params: 2, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun125718);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun125718(a0) { // fn#125718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:97, offset: 0x025e1c17, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(16260) /* metro dependency 16260: HeadlessTaskUtils */).awaitStorage(_fun125719);
|
||||
}
|
||||
|
||||
function _fun125719() { // fn#125719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16472:123, offset: 0x025e1c4d, size: 111 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__.__proto__;
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
const getMuteStates = (require(6952) /* metro dependency 6952: useMuteStates */).getMuteStates;
|
||||
value = Reflect.apply(getMuteStates, value, [{channel: channel}]);
|
||||
const voiceActionUtilsModule = require(10834) /* metro dependency 10834: VoiceActionUtils */;
|
||||
voiceActionUtilsModule.createMuteHandler(value).onPress();
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user