Files
discord-decomp/sources/modules/app_launcher/utils/AppLauncherPlayUtils.tsx
T
2026-07-28 01:06:53 +03:00

44 lines
2.6 KiB
TypeScript

/* Metro module 9527; source: modules/app_launcher/utils/AppLauncherPlayUtils.tsx; dependencies: [5, 8100, 8101, 4603, 9472, 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 */
function _fun74328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9713:6, offset: 0x01d8a61b, size: 129 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/utils/AppLauncherPlayUtils.tsx');
exports.launchActivityInBotDM = function() {
return _launchActivityInBotDM.apply(this, arguments);
};
function _launchActivityInBotDM() { // fn#74329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9713:106, offset: 0x01d8a69c, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun74331).apply(this, arguments);
async function _fun74331({appId, botId, analyticsLocations, customId, referrerId, commandOrigin}) { // fn#74331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9713:173, offset: 0x01d8a6e2, size: 301 bytes, params: 2, frame: 23
if (true) {
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
var value4 = env2_0(env2_2[1]);
if (value4.tryLaunchAsFrame({applicationId: appId})) {
env2_0(env2_2[2]).stashPendingFrameLaunch(appId, {isStart: true});
return global.Promise.resolve(true);
}
var value5 = env2_1(env2_2[3]);
await value5.openPrivateChannel({recipientIds: botId});
if (false) {
return undefined;
}
await env2_1(env2_2[4])({targetApplicationId: appId, channelId: undefined,
analyticsLocations: analyticsLocations,
customId: customId, referrerId: referrerId, commandOrigin: commandOrigin});
}
}
}
}
global.__d(_fun74328, 9527, [5, 8100, 8101, 4603, 9472,
2]) /* metro module 9527, dependencies: [5, 8100, 8101, 4603, 9472, 2] */;