decord/alpha/source/modules/messages/shouldRemoveSelfMention.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

27 lines
772 B
TypeScript

// Module ID: 7962
// Function ID: 7963
// Name: shouldRemoveSelfMention
// Dependencies: [1074, 2]
// Exports: default
// Module 7962 (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;
};