decord/source/modules/go_live/utils/trackStreamProblem.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

39 lines
1.3 KiB
TypeScript

// Module ID: 17218
// Function ID: 17219
// Name: trackStreamProblem
// Dependencies: [1074, 1242, 2]
// Exports: default
// Module 17218 (trackStreamProblem)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/go_live/utils/trackStreamProblem.tsx");
export default function trackStreamProblem(arg0) {
({ stream, streamApplication, analyticsData, rating } = arg0);
({ problem, feedback, location: _location } = arg0);
if (rating === undefined) {
rating = null;
}
({ category, variant } = arg0);
let obj = expandEventPropertiesDefault;
obj = { reason: problem, category, reason_variant: variant, streamer_user_id: stream.ownerId, stream_channel_id: stream.channelId, guild_id: stream.guildId, application_id: null, application_name: null, location: null, rating: null, feedback: null };
let id = null;
if (null != streamApplication) {
id = streamApplication.id;
}
obj[6] = id;
let name = null;
if (null != streamApplication) {
name = streamApplication.name;
}
obj[7] = name;
obj[8] = _location;
obj[9] = rating;
obj[10] = feedback;
const merged = Object.assign(analyticsData);
obj.track(AnalyticEvents.STREAM_REPORT_PROBLEM, obj);
};