decord/alpha/source/modules/channel/trackWaveCtaClicked.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

32 lines
1.2 KiB
TypeScript

// Module ID: 11957
// Function ID: 11958
// Name: trackWaveCtaClicked
// Dependencies: [2044, 1074, 1241, 2]
// Exports: getDmHasMessageHistory, trackWaveCtaClicked
// Module 11957 (trackWaveCtaClicked)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import ChannelStore from "ChannelStore" /* 2044 */;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/channel/trackWaveCtaClicked.tsx");
export const getDmHasMessageHistory = function getDmHasMessageHistory(arg0) {
const channel = ChannelStore.getChannel(arg0);
let lastMessageId;
if (channel != null) {
lastMessageId = channel.lastMessageId;
}
return null != lastMessageId;
};
export const trackWaveCtaClicked = function trackWaveCtaClicked(channelId) {
const obj2 = { channel_id: channelId.channelId, source: channelId.source, dm_has_message_history: null };
const channel = ChannelStore.getChannel(channelId.channelId);
let lastMessageId;
if (channel != null) {
lastMessageId = channel.lastMessageId;
}
obj2.dm_has_message_history = null != lastMessageId;
AnalyticsUtilsDefault.track(AnalyticEvents.WAVE_CTA_CLICKED, obj2);
};