decord/source/modules/messages/shouldRemoveSelfMention.tsx
2026-09-02 09:53:35 +00:00

27 lines
736 B
TypeScript

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