decord/stable/source/modules/messages/shouldRemoveSelfMention.tsx
github-actions 528a3dd5ba chore: update source for stable 345.9
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
2026-09-18 20:18:48 +00:00

27 lines
772 B
TypeScript

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