Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
// Module ID: 12269
|
|
// Function ID: 12270
|
|
// Name: trackWaveCtaClicked
|
|
// Dependencies: [1957, 1074, 1242, 2]
|
|
// Exports: getDmHasMessageHistory, trackWaveCtaClicked
|
|
|
|
// Module 12269 (trackWaveCtaClicked)
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
|
|
|
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);
|
|
};
|