24 lines
644 B
TypeScript
24 lines
644 B
TypeScript
// Module ID: 5871
|
|
// Function ID: 51852
|
|
// Name: shouldRemoveSelfMention
|
|
// Dependencies: [653, 2]
|
|
// Exports: default
|
|
|
|
// Module 5871 (shouldRemoveSelfMention)
|
|
import { MessageTypesSets } from "ME";
|
|
|
|
const result = require("set").fileFinishedImporting("modules/messages/shouldRemoveSelfMention.tsx");
|
|
|
|
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;
|
|
};
|