Files
discord-decomp/sources/modules/checkpoint/native/onTapCheckpointCard.tsx
T
2026-07-27 16:20:00 +03:00

26 lines
1.9 KiB
TypeScript

/* Metro module 11512; source: modules/checkpoint/native/onTapCheckpointCard.tsx; dependencies: [1379, 661, 683, 4863, 2] */
function _fun88146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11698:6, offset: 0x01fd6880, size: 140 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 env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/checkpoint/native/onTapCheckpointCard.tsx');
exports.onTapCheckpointCard = onTapCheckpointCard;
}
function onTapCheckpointCard({message, authorId}) { // fn#88147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11698:236, offset: 0x01fd690c, size: 165 bytes, params: 2, frame: 20
const channel = ChannelStore.getChannel(message.channel_id);
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const CHECKPOINT_CARD_CLICKED = AnalyticEvents.CHECKPOINT_CARD_CLICKED;
const object2 = {other_user_id: authorId};
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
copyDataProperties(object2, appAnalyticsUtilsModule.collectChannelAnalyticsMetadata(channel),
appAnalyticsUtilsModule);
const moduleValue = appAnalyticsUtilsModule;
copyDataProperties(object2, moduleValue.collectGuildAnalyticsMetadata(channel?.guild_id), appAnalyticsUtilsModule);
Reflect.apply(track, defaultImport, [CHECKPOINT_CARD_CLICKED, object2]);
}