decord/beta/source/modules/messages/shouldRemoveSelfMention.tsx
2026-10-12 16:32:48 +00:00

27 lines
768 B
TypeScript

// Module ID: 6081
// Function ID: 6082
// Name: shouldRemoveSelfMention
// Dependencies: [1085, 2]
// Exports: default
// Module 6081 (shouldRemoveSelfMention)
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
const MessageTypesSets = Constants.MessageTypesSets;
const result = size.fileFinishedImporting("modules/messages/shouldRemoveSelfMention.tsx");
export default function shouldRemoveSelfMention(type, arg1) {
const SELF_MENTIONABLE_SYSTEM = MessageTypesSets.SELF_MENTIONABLE_SYSTEM;
const hasItem = SELF_MENTIONABLE_SYSTEM.has(type.type);
let tmp2 = !hasItem;
if (tmp2) {
const author = type.author;
let id;
if (author != null) {
id = author.id;
}
tmp2 = id === arg1;
}
return tmp2;
};