2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 5871
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 51852
|
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-25 08:10:48 +00:00
|
|
|
// Module 5871 (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;
|
|
|
|
|
};
|