decord/source/modules/activities/trackActivityThermalStateNoticeShown.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

43 lines
2 KiB
TypeScript

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