Files
discord-decomp/sources/modules/activities/trackActivityThermalStateNoticeShown.tsx
T
2026-07-27 16:20:00 +03:00

32 lines
2.6 KiB
TypeScript

/* Metro module 15409; source: modules/activities/trackActivityThermalStateNoticeShown.tsx; dependencies: [1379, 4294, 1378, 661, 3774, 683, 2] */
function _fun117868(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15606:6, offset: 0x024c397f, size: 172 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/trackActivityThermalStateNoticeShown.tsx');
exports.trackActivityThermalStateNoticeShown = trackActivityThermalStateNoticeShown;
}
function trackActivityThermalStateNoticeShown() { // fn#117869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15606:283, offset: 0x024c3a2b, size: 206 bytes, params: 1, frame: 20
const currentEmbeddedActivity = EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
const value3 = undefined;
const embeddedActivityLocationChannelId = (require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */).getEmbeddedActivityLocationChannelId(currentEmbeddedActivity == null ? value3 : currentEmbeddedActivity.location);
const basicChannel = ChannelStore.getBasicChannel(embeddedActivityLocationChannelId);
const compositeInstanceId = currentEmbeddedActivity == null ? value3 : currentEmbeddedActivity.compositeInstanceId;
const applicationId = currentEmbeddedActivity == null ? value3 : currentEmbeddedActivity.applicationId;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const ACTIVITY_THERMAL_STATE_NOTICE_SHOWN = AnalyticEvents.ACTIVITY_THERMAL_STATE_NOTICE_SHOWN;
const object2 = {channel_id: embeddedActivityLocationChannelId, application_id: applicationId,
activity_session_id: compositeInstanceId};
object2.guild_id = basicChannel == null ? value3 : basicChannel.guild_id;
object2.media_session_id = RTCConnectionStore.getMediaSessionId();
Reflect.apply(track, defaultImport, [ACTIVITY_THERMAL_STATE_NOTICE_SHOWN, object2]);
return value3;
}