decord/source/modules/messages/shouldRemoveSelfMention.tsx

28 lines
738 B
TypeScript
Raw Normal View History

// Module ID: 7638
// Function ID: 7639
2026-07-20 16:05:17 +00:00
// Name: shouldRemoveSelfMention
// Dependencies: [1074, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 7638 (shouldRemoveSelfMention)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const MessageTypesSets = ME.MessageTypesSets;
const result = 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;
2026-07-29 08:29:29 +00:00
const hasItem = SELF_MENTIONABLE_SYSTEM.has(type.type);
let tmp2 = !hasItem;
if (!hasItem) {
2026-07-20 16:05:17 +00:00
const author = type.author;
let id;
2026-07-29 08:29:29 +00:00
if (author != null) {
2026-07-20 16:05:17 +00:00
id = author.id;
}
2026-07-29 08:29:29 +00:00
tmp2 = id === arg1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
};