2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 5391
|
|
|
|
|
// Function ID: 5392
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: shouldRemoveSelfMention
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [676, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 5391 (shouldRemoveSelfMention)
|
|
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import ME from "ME" /* 676 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const MessageTypesSets = ME.MessageTypesSets;
|
|
|
|
|
const result = set.fileFinishedImporting("modules/messages/shouldRemoveSelfMention.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function shouldRemoveSelfMention(type) {
|
|
|
|
|
const SELF_MENTIONABLE_SYSTEM = MessageTypesSets.SELF_MENTIONABLE_SYSTEM;
|
2026-07-29 08:29:29 +00:00
|
|
|
const hasItem = SELF_MENTIONABLE_SYSTEM.has(type.type);
|
|
|
|
|
let tmp2 = !hasItem;
|
|
|
|
|
if (!hasItem) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const author = type.author;
|
|
|
|
|
let id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (author != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id = author.id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp2 = id === arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|