decord/beta/source/modules/messages/shouldRemoveSelfMention.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

27 lines
772 B
TypeScript

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