decord/source/modules/activities/trackActivityThermalStateNoticeShown.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

43 lines
2 KiB
TypeScript

// Module ID: 17135
// Function ID: 17136
// Name: trackActivityThermalStateNoticeShown
// Dependencies: [1957, 4629, 1956, 1074, 4235, 1242, 2]
// Exports: trackActivityThermalStateNoticeShown
// Module 17135 (trackActivityThermalStateNoticeShown)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import embeddedActivityLocationUtils from "embeddedActivityLocationUtils" /* 4235 */;
import ChannelStore from "ChannelStore" /* 1957 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4629 */;
import EmbeddedActivitiesStore from "EmbeddedActivitiesStore" /* 1956 */;
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);
};