decord/source/modules/go_live/utils/trackStreamProblem.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

38 lines
1.4 KiB
TypeScript

// Module ID: 17252
// Function ID: 17253
// Name: trackStreamProblem
// Dependencies: [1074, 1242, 2]
// Exports: default
// Module 17252 (trackStreamProblem)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.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);
const obj2 = { 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;
}
obj2.application_id = id;
let name = null;
if (null != streamApplication) {
name = streamApplication.name;
}
obj2.application_name = name;
obj2.location = _location;
obj2.rating = rating;
obj2.feedback = feedback;
const merged = Object.assign(analyticsData);
AnalyticsUtilsDefault.track(AnalyticEvents.STREAM_REPORT_PROBLEM, obj2);
};