23 lines
633 B
TypeScript
23 lines
633 B
TypeScript
// Metro module 4365 (f4366).
|
|
import RunningGameStore_native from "../../game_detection/RunningGameStore.native";
|
|
export default function getSoundshareAnalyticsContext(a0) {
|
|
if (a0 == null) {
|
|
return {};
|
|
}
|
|
const sourcePid = a0.sourcePid;
|
|
const r1 = sourcePid != null;
|
|
let share_game_id = void 0;
|
|
let share_game_name = void 0;
|
|
if (r1) {
|
|
const gameForPID = RunningGameStore_native.getGameForPID(sourcePid);
|
|
const name = gameForPID?.name;
|
|
share_game_id = gameForPID?.id;
|
|
share_game_name = name;
|
|
}
|
|
return {
|
|
soundshare_session: a0.soundshareSession,
|
|
share_game_name,
|
|
share_game_id
|
|
};
|
|
};
|