2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 7052
|
|
|
|
|
// Function ID: 7053
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: shouldRemoveSelfMention
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [1074, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 7052 (shouldRemoveSelfMention)
|
2026-09-26 17:57:22 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
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;
|
|
|
|
|
};
|