decord/source/modules/messages/shouldRemoveSelfMention.tsx

26 lines
678 B
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 5386
// Function ID: 5387
2026-07-20 16:05:17 +00:00
// Name: shouldRemoveSelfMention
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 5386 (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;
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
};