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

35 lines
1.8 KiB
TypeScript

/* Metro module 4489; source: modules/go_live/utils/getSoundshareAnalyticsContext.tsx; dependencies: [4266, 2] */
import RunningGameStoreNative from '../../game_detection/RunningGameStore.native.tsx'; /* Metro dependency 4266 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun38257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:6, offset: 0x010baee9, size: 104 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/getSoundshareAnalyticsContext.tsx');
exports.default = getSoundshareAnalyticsContext;
function getSoundshareAnalyticsContext(a0) { // fn#38258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:205, offset: 0x010baf51, size: 107 bytes, params: 2, frame: 16
var name;
var r1;
var r2;
var gameForPID;
if (a0 == null) {
return {};
}
const sourcePid = a0.sourcePid;
const value = undefined;
if (sourcePid != null) {
gameForPID = RunningGameStoreNative.getGameForPID(sourcePid);
name = gameForPID == null ? value : gameForPID.name;
r1 = gameForPID == null ? value : gameForPID.id;
r2 = name;
} else {
r1 = value;
r2 = value;
}
return {soundshare_session: a0.soundshareSession, share_game_name: r2, share_game_id: r1};
}
}
global.__d(_fun38257, 4489, [4266, 2]) /* metro module 4489, dependencies: [4266, 2] */;