decord/alpha/source/modules/activities/trackActivityThermalStateNoticeShown.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

43 lines
2 KiB
TypeScript

// Module ID: 16843
// Function ID: 16844
// Name: trackActivityThermalStateNoticeShown
// Dependencies: [2044, 4852, 2043, 1074, 4455, 1241, 2]
// Exports: trackActivityThermalStateNoticeShown
// Module 16843 (trackActivityThermalStateNoticeShown)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import embeddedActivityLocationUtils from "embeddedActivityLocationUtils" /* 4455 */;
import ChannelStore from "ChannelStore" /* 2044 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4852 */;
import EmbeddedActivitiesStore from "EmbeddedActivitiesStore" /* 2043 */;
require = fn;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/trackActivityThermalStateNoticeShown.tsx");
export const trackActivityThermalStateNoticeShown = function trackActivityThermalStateNoticeShown() {
const currentEmbeddedActivity = EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
let _location;
if (currentEmbeddedActivity != null) {
_location = currentEmbeddedActivity.location;
}
const embeddedActivityLocationChannelId = embeddedActivityLocationUtils.getEmbeddedActivityLocationChannelId(_location);
const basicChannel = ChannelStore.getBasicChannel(embeddedActivityLocationChannelId);
let compositeInstanceId;
if (currentEmbeddedActivity != null) {
compositeInstanceId = currentEmbeddedActivity.compositeInstanceId;
}
let applicationId;
if (currentEmbeddedActivity != null) {
applicationId = currentEmbeddedActivity.applicationId;
}
const obj3 = { channel_id: embeddedActivityLocationChannelId, application_id: applicationId, activity_session_id: compositeInstanceId, guild_id: null, media_session_id: null };
let guild_id;
if (basicChannel != null) {
guild_id = basicChannel.guild_id;
}
obj3.guild_id = guild_id;
obj3.media_session_id = RTCConnectionStore.getMediaSessionId();
AnalyticsUtilsDefault.track(AnalyticEvents.ACTIVITY_THERMAL_STATE_NOTICE_SHOWN, obj3);
};