decord/source/modules/messages/shouldRemoveSelfMention.tsx

28 lines
736 B
TypeScript
Raw Normal View History

// Module ID: 7571
// Function ID: 7572
2026-07-20 16:05:17 +00:00
// Name: shouldRemoveSelfMention
2026-09-02 09:53:35 +00:00
// Dependencies: [673, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 7571 (shouldRemoveSelfMention)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
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
};