decord/source/modules/read_states/trackAckMessages.tsx

34 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12912
// Function ID: 100310
2026-07-20 16:05:17 +00:00
// Name: trackAckMessages
2026-07-25 08:10:48 +00:00
// Dependencies: [1348, 5868, 1838, 4326, 653, 4325, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 12912 (trackAckMessages)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import closure_5 from "_isNativeReflectConstruct";
import { AnalyticEvents } from "ME";
const require = arg1;
const result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/read_states/trackAckMessages.tsx");
2026-07-20 16:05:17 +00:00
export default function trackAckMessages(channel_id, location) {
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(channel_id);
2026-07-20 16:05:17 +00:00
const obj = { channel_id };
let guildId;
if (null != channel) {
guildId = channel.getGuildId();
}
obj.guild_id = guildId;
obj.location = location;
2026-07-23 10:11:24 +00:00
guildsArray = guildsArray.getGuildsArray();
2026-07-20 16:05:17 +00:00
obj.guild_unread_statuses = guildsArray.map((id) => {
2026-07-23 10:11:24 +00:00
const mentionCount = outer1_3.getMentionCount(id.id);
const hasUnreadResult = outer1_3.hasUnread(id.id);
return "" + id.id + "," + hasUnreadResult + "," + mentionCount + "," + outer1_5.isMuted(id.id) + "," + outer1_5.resolveGuildUnreadSetting(id);
2026-07-20 16:05:17 +00:00
});
2026-07-25 08:10:48 +00:00
require(4325) /* _createForOfIteratorHelperLoose */.trackWithMetadata(AnalyticEvents.ACK_MESSAGES, obj);
2026-07-20 16:05:17 +00:00
};