decord/source/modules/channel/trackWaveCtaClicked.tsx

27 lines
951 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 11399
// Function ID: 88643
2026-07-20 16:05:17 +00:00
// Name: getDmHasMessageHistory
2026-07-23 10:11:24 +00:00
// Dependencies: [1348, 653, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: trackWaveCtaClicked
2026-07-24 07:16:23 +00:00
// Module 11399 (getDmHasMessageHistory)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { AnalyticEvents } from "ME";
2026-07-20 16:05:17 +00:00
function getDmHasMessageHistory(channelId) {
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(channelId);
2026-07-20 16:05:17 +00:00
let lastMessageId;
if (null != channel) {
lastMessageId = channel.lastMessageId;
}
return null != lastMessageId;
}
2026-07-23 10:11:24 +00:00
const result = require("expandLocation").fileFinishedImporting("modules/channel/trackWaveCtaClicked.tsx");
2026-07-20 16:05:17 +00:00
export { getDmHasMessageHistory };
export const trackWaveCtaClicked = function trackWaveCtaClicked(channelId) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj = { channel_id: channelId.channelId, source: channelId.source, dm_has_message_history: getDmHasMessageHistory(channelId.channelId) };
obj.track(AnalyticEvents.WAVE_CTA_CLICKED, obj);
};