27 lines
736 B
TypeScript
27 lines
736 B
TypeScript
// Module ID: 5391
|
|
// Function ID: 5392
|
|
// Name: shouldRemoveSelfMention
|
|
// Dependencies: [676, 2]
|
|
// Exports: default
|
|
|
|
// Module 5391 (shouldRemoveSelfMention)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 676 */;
|
|
|
|
const MessageTypesSets = ME.MessageTypesSets;
|
|
const result = set.fileFinishedImporting("modules/messages/shouldRemoveSelfMention.tsx");
|
|
|
|
export default function shouldRemoveSelfMention(type) {
|
|
const SELF_MENTIONABLE_SYSTEM = MessageTypesSets.SELF_MENTIONABLE_SYSTEM;
|
|
const hasItem = SELF_MENTIONABLE_SYSTEM.has(type.type);
|
|
let tmp2 = !hasItem;
|
|
if (!hasItem) {
|
|
const author = type.author;
|
|
let id;
|
|
if (author != null) {
|
|
id = author.id;
|
|
}
|
|
tmp2 = id === arg1;
|
|
}
|
|
return tmp2;
|
|
};
|