Files
discord-decomp/sources/modules/app_launcher/utils/AppLauncherPlayUtils.tsx
T
2026-07-27 16:20:00 +03:00

40 lines
2.1 KiB
TypeScript

/* Metro module 9527; source: modules/app_launcher/utils/AppLauncherPlayUtils.tsx; dependencies: [5, 8100, 8101, 4603, 9472, 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});
const env0_3 = importDefault(5) /* metro dependency 5 */;
(require(2) /* metro dependency 2 */).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 env0_3(_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});
}
}