decord/source/modules/messages/shouldRemoveSelfMention.tsx

25 lines
644 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 6880
// Function ID: 54545
2026-07-20 16:05:17 +00:00
// Name: shouldRemoveSelfMention
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 6880 (shouldRemoveSelfMention)
2026-07-23 10:11:24 +00:00
import { MessageTypesSets } from "ME";
const result = require("set").fileFinishedImporting("modules/messages/shouldRemoveSelfMention.tsx");
2026-07-20 16:05:17 +00:00
export default function shouldRemoveSelfMention(type) {
const SELF_MENTIONABLE_SYSTEM = MessageTypesSets.SELF_MENTIONABLE_SYSTEM;
let tmp = !SELF_MENTIONABLE_SYSTEM.has(type.type);
if (tmp) {
const author = type.author;
let id;
if (null != author) {
id = author.id;
}
tmp = id === arg1;
}
return tmp;
};