Files
discord-decomp/sources/modules/activities/trackActivityThermalStateNoticeShown.tsx
2026-07-28 01:06:53 +03:00

37 lines
3.0 KiB
TypeScript

/* Metro module 15409; source: modules/activities/trackActivityThermalStateNoticeShown.tsx; dependencies: [1379, 4294, 1378, 661, 3774, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import EmbeddedActivitiesStore from './EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import RTCConnectionStore from '../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
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});
(FileImportTrackerModule).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 = AnalyticsUtils;
const track = defaultImport.track;
const ACTIVITY_THERMAL_STATE_NOTICE_SHOWN = AnalyticEvents.ACTIVITY_THERMAL_STATE_NOTICE_SHOWN;
const object = {channel_id: embeddedActivityLocationChannelId, application_id: applicationId,
activity_session_id: compositeInstanceId};
object.guild_id = basicChannel == null ? value3 : basicChannel.guild_id;
object.media_session_id = RTCConnectionStore.getMediaSessionId();
Reflect.apply(track, defaultImport, [ACTIVITY_THERMAL_STATE_NOTICE_SHOWN, object]);
return value3;
}
}
global.__d(_fun117868, 15409, [1379, 4294, 1378, 661, 3774, 683,
2]) /* metro module 15409, dependencies: [1379, 4294, 1378, 661, 3774, 683, 2] */;