43 lines
1.9 KiB
TypeScript
43 lines
1.9 KiB
TypeScript
// Module ID: 7482
|
|
// Function ID: 7483
|
|
// Name: PublicGuildsUtils
|
|
// Dependencies: [7483, 1086, 7484, 7485, 1253, 5017, 2]
|
|
// Exports: getPublicSystemMessageAvatar, isPublicSystemMessage, trackEnableCommunityFlow
|
|
|
|
// Module 7482 (PublicGuildsUtils)
|
|
import Constants from "Constants" /* 1086 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1253 */;
|
|
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 5017 */;
|
|
import isCrosspostDefault from "isCrosspost" /* 7484 */;
|
|
import PublicGuildsConstants from "PublicGuildsConstants" /* 7483 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
let c3;
|
|
let closure_4;
|
|
let hasOwnProperty;
|
|
({ PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID: c3, PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID: closure_4, ENABLE_COMMUNITY_FLOW_MODAL_KEY: hasOwnProperty } = PublicGuildsConstants);
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const result = size.fileFinishedImporting("modules/public_guilds/PublicGuildsUtils.tsx");
|
|
|
|
export const isPublicSystemMessage = function isPublicSystemMessage(message) {
|
|
let tmp = isCrosspostDefault(message) && message.messageReference.guild_id === _false;
|
|
if (!tmp) {
|
|
tmp = null != message.author && message.author.id === React3;
|
|
const tmp4 = null != message.author && message.author.id === React3;
|
|
}
|
|
return tmp;
|
|
};
|
|
export const getPublicSystemMessageAvatar = function getPublicSystemMessageAvatar() {
|
|
return require("AssetRegistry");
|
|
};
|
|
export const trackEnableCommunityFlow = function trackEnableCommunityFlow(fromStep) {
|
|
const track = AnalyticsUtilsDefault.track;
|
|
const USER_FLOW_TRANSITION = AnalyticEvents.USER_FLOW_TRANSITION;
|
|
const obj = { flow_type: hasOwnProperty, from_step: fromStep.fromStep, to_step: fromStep.toStep };
|
|
AnalyticsUtilsDefault;
|
|
const obj2 = AppAnalyticsUtils;
|
|
const merged = Object.assign(obj2.collectGuildAnalyticsMetadata(fromStep.guildId));
|
|
track(USER_FLOW_TRANSITION, obj);
|
|
};
|