Files
discord-decomp/sources/modules/links/native/handleContentLinking.tsx
T
2026-07-28 01:06:53 +03:00

126 lines
6.9 KiB
TypeScript

/* Metro module 9863; source: modules/links/native/handleContentLinking.tsx; dependencies: [5, 4255, 661, 5080, 6837, 1230, 9864, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as PostConnectionCallbackStoreModule from '../../gateway/PostConnectionCallbackStore.tsx'; /* Metro dependency 4255 */
function _fun77312(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:6, offset: 0x01df8fb7, size: 179 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/links/native/handleContentLinking.tsx');
exports.default = function() {
return _handleContentLinking.apply(this, arguments);
};
function _handleContentLinking() { // fn#77313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:166, offset: 0x01df906a, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun77315).apply(this, arguments);
async function _fun77315({guildId, channelId, navigationSettings, messageId, summaryId}) { // fn#77315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:231, offset: 0x01df90b0, size: 411 bytes, params: 2, frame: 26
var environment;
var Promise;
var value7;
var promise;
var value11;
var transitionTo;
var value13;
if (true) {
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
var binding = env2_1;
binding(env2_2[3]).popAll();
var safe = navigationSettings.safe;
var navigationReplace = navigationSettings.navigationReplace;
var r11 = navigationReplace === undefined || navigationReplace;
var waitForConnection = navigationSettings.waitForConnection;
var r2 = waitForConnection === undefined || waitForConnection;
var skipMessageFetch = navigationSettings.skipMessageFetch;
if (r2) {
if (env2_6 != null) {
env2_6();
}
Promise = global.Promise;
value7 = Object.create(Promise.prototype, {constructor: {value: Promise}});
promise = new Promise(_fun77316);
await (promise instanceof Object ? promise : value7);
if (false) {
return undefined;
}
if (safe) {
binding = env2_1;
value13 = binding(env2_2[4]);
binding = env2_5;
await value13(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: r11,
openChannel: true,
skipMessageFetch: skipMessageFetch});
if (false) {
return undefined;
}
if (channelId != null && summaryId != null) {
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
}
return undefined;
}
binding = env2_0;
value11 = binding(env2_2[5]);
transitionTo = value11.transitionTo;
binding = env2_5;
Reflect.apply(transitionTo, value11, [binding.CHANNEL(guildId, channelId, messageId),
{navigationReplace: r11,
openChannel: true, skipMessageFetch: skipMessageFetch}]);
if (channelId != null && summaryId != null) {
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
}
} else {
if (safe) {
binding = env2_1;
value13 = binding(env2_2[4]);
binding = env2_5;
await value13(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: r11,
openChannel: true,
skipMessageFetch: skipMessageFetch});
if (false) {
return undefined;
}
if (channelId != null && summaryId != null) {
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
}
return undefined;
}
binding = env2_0;
value11 = binding(env2_2[5]);
transitionTo = value11.transitionTo;
binding = env2_5;
Reflect.apply(transitionTo, value11, [binding.CHANNEL(guildId, channelId, messageId),
{navigationReplace: r11,
openChannel: true, skipMessageFetch: skipMessageFetch}]);
if (channelId != null && summaryId != null) {
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
}
}
}
function _fun77316(a0, a1) { // fn#77316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:474, offset: 0x01df924b, size: 50 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
env3_4(_fun77318);
function o_77317() { // fn#77317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:484, offset: 0x01df927d, size: 50 bytes, params: 1, frame: 12
const Error = global.Error;
return require(new Error('superseded'));
}
function _fun77318() { // fn#77318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:518, offset: 0x01df92af, size: 24 bytes, params: 1, frame: 9
env0_0();
}
}
}
}
}
global.__d(_fun77312, 9863, [5, 4255, 661, 5080, 6837, 1230, 9864,
2]) /* metro module 9863, dependencies: [5, 4255, 661, 5080, 6837, 1230, 9864, 2] */;