17 lines
933 B
TypeScript
17 lines
933 B
TypeScript
// Metro module 12979 (f12980).
|
|
import ChannelStore from "../../stores/ChannelStore";
|
|
import GuildReadStateStore from "../../stores/GuildReadStateStore";
|
|
import GuildStore from "../../stores/GuildStore";
|
|
import UserGuildSettingsStore from "../../stores/UserGuildSettingsStore";
|
|
import { AnalyticEvents } from "../../Constants";
|
|
import { trackWithMetadata } from "../app_analytics/AppAnalyticsUtils";
|
|
export default function trackAckMessages(a0, a1) {
|
|
const channel = ChannelStore.getChannel(a0);
|
|
trackWithMetadata(AnalyticEvents.ACK_MESSAGES, {
|
|
channel_id: a0,
|
|
guild_id: channel == null ? void 0 : channel.getGuildId(),
|
|
location: a1,
|
|
guild_unread_statuses: GuildStore.getGuildsArray().map((item) => `${item.id},${GuildReadStateStore.hasUnread(item.id)},${GuildReadStateStore.getMentionCount(item.id)},${UserGuildSettingsStore.isMuted(item.id)},${UserGuildSettingsStore.resolveGuildUnreadSetting(item)}`)
|
|
});
|
|
};
|