Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
27 lines
772 B
TypeScript
27 lines
772 B
TypeScript
// Module ID: 7740
|
|
// Function ID: 7741
|
|
// Name: shouldRemoveSelfMention
|
|
// Dependencies: [1074, 2]
|
|
// Exports: default
|
|
|
|
// Module 7740 (shouldRemoveSelfMention)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const MessageTypesSets = Constants.MessageTypesSets;
|
|
const result = size.fileFinishedImporting("modules/messages/shouldRemoveSelfMention.tsx");
|
|
|
|
export default function shouldRemoveSelfMention(type, arg1) {
|
|
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;
|
|
};
|